|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdigraph.DiGraph.Edge<V,E>
public static class DiGraph.Edge<V,E>
Inner class representing an edge of a directed graph.
Method Summary | |
---|---|
Graph.Vertex<V,E> |
destination()
Returns the destination vertex of this edge. |
E |
getValue()
Returns the value associated with this edge. |
void |
setValue(E value)
Sets the value associated with this edge. |
Graph.Vertex<V,E> |
source()
Returns the source vertex of this edge. |
String |
toString()
Returns a String representation of the data associated with this edge. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public E getValue()
getValue
in interface Graph.Edge<V,E>
public void setValue(E value)
setValue
in interface Graph.Edge<V,E>
value
- The new value associated with this edge.public Graph.Vertex<V,E> source()
source
in interface Graph.Edge<V,E>
public Graph.Vertex<V,E> destination()
destination
in interface Graph.Edge<V,E>
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |