- java.lang.Object
-
- org.jgrapht.graph.DefaultEdge
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable
public class DefaultEdge extends java.lang.ObjectA 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 java.lang.Objectclone()protected java.lang.ObjectgetSource()Retrieves the source of this edge.protected java.lang.ObjectgetTarget()Retrieves the target of this edge.java.lang.StringtoString()
-
-
-
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:
toStringin classjava.lang.Object
-
clone
public java.lang.Object clone()
- Overrides:
clonein classjava.lang.Object- See Also:
Object.clone()
-
-