Package org.jgrapht.graph
Class DefaultEdge
- java.lang.Object
-
- org.jgrapht.graph.DefaultEdge
-
- All Implemented Interfaces:
Serializable,Cloneable
public class DefaultEdge extends Object
A default implementation for edges in aGraph.- Author:
- Barak Naveh
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DefaultEdge()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()protected ObjectgetSource()Retrieves the source of this edge.protected ObjectgetTarget()Retrieves the target of this edge.StringtoString()
-
-
-
Method Detail
-
getSource
protected Object getSource()
Retrieves the source of this edge. This is protected, for use by subclasses only (e.g. for implementing toString).- Returns:
- source of this edge
-
getTarget
protected Object getTarget()
Retrieves the target of this edge. This is protected, for use by subclasses only (e.g. for implementing toString).- Returns:
- target of this edge
-
clone
public Object clone()
- Overrides:
clonein classObject- See Also:
Object.clone()
-
-