|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdigraph.DiGraph.Vertex<V,E>
public static class DiGraph.Vertex<V,E>
Nested class representing a vertex of a directed graph.
Method Summary | |
---|---|
V |
getValue()
Returns the value associated with this vertex. |
boolean |
isVisited()
Returns true if this vertex is visited, otherwise false. |
Iterator<Graph.Edge<V,E>> |
iterator()
Creates an iterator over the outgoing edges of this vertex. |
void |
setValue(V value)
Sets the value associated with this vertex. |
String |
toString()
Returns a String representation of the data associated with this vertex. |
void |
unvisit()
Marks the vertex as not visited. |
void |
visit()
Marks this vertex as visited. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public V getValue()
getValue
in interface Graph.Vertex<V,E>
public void setValue(V value)
setValue
in interface Graph.Vertex<V,E>
value
- The new value of the data associated with this vertex.public void unvisit()
unvisit
in interface Graph.Vertex<V,E>
public void visit()
visit
in interface Graph.Vertex<V,E>
public boolean isVisited()
isVisited
in interface Graph.Vertex<V,E>
public Iterator<Graph.Edge<V,E>> iterator()
iterator
in interface Iterable<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 |