Package org.jgrapht.graph
Class DefaultEdge
- java.lang.Object
-
- org.jgrapht.graph.IntrusiveEdge
-
- org.jgrapht.graph.DefaultEdge
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
- Direct Known Subclasses:
BlockCutpointGraph.BCGEdge
,DefaultWeightedEdge
public class DefaultEdge extends IntrusiveEdge
A default implementation for edges in aGraph
.- Since:
- Jul 14, 2003
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
-
Fields inherited from class org.jgrapht.graph.IntrusiveEdge
source, target
-
-
Constructor Summary
Constructors Constructor Description DefaultEdge()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.Object
getSource()
Retrieves the source of this edge.protected java.lang.Object
getTarget()
Retrieves the target of this edge.java.lang.String
toString()
-
Methods inherited from class org.jgrapht.graph.IntrusiveEdge
clone
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Method Detail
-
getSource
protected java.lang.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 java.lang.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
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-