|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Edge
Interface for a simple, labeled, directed edge, characterized by its source and destination nodes.
Method Summary | |
---|---|
Node |
getFrom()
|
java.lang.String |
getLabel()
If in need of a readable rendition of the edge's features, use the toString functions. |
Node |
getTo()
|
java.lang.String |
toString()
Constructs a full representation of the edge, including its two adjacent nodes. |
java.lang.String |
toStringShort()
Constructs a short representation of the edge, including only information about label. |
java.lang.String |
toStringShort(boolean isBackward)
Constructs a short representation of the edge, including only information about label and direction. |
Method Detail |
---|
java.lang.String getLabel()
toString
functions.
Node getFrom()
Node
Node getTo()
Node
java.lang.String toString()
toString
in class java.lang.Object
String
representation of the edgejava.lang.String toStringShort()
String
representation of the edgejava.lang.String toStringShort(boolean isBackward)
isBackward
- - mentions that the edge is in opposite direction with respect to the representation and should be
represented accordingly
String
representation of the edge
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |