graph
Interface Graph.Vertex<V,E>

All Superinterfaces:
Iterable<Graph.Edge<V,E>>
All Known Implementing Classes:
DiGraph.Vertex
Enclosing interface:
Graph<V,E>

public static interface Graph.Vertex<V,E>
extends Iterable<Graph.Edge<V,E>>

Represents a vertex in a graph.


Method Summary
 V getValue()
          Returns the value associated with this vertex.
 boolean isVisited()
          Returns true if this vertex is visited, otherwise false.
 void setValue(V value)
          Sets the value associated with this vertex.
 void unvisit()
          Marks the vertex as not visited.
 void visit()
          Marks the vertex as visited.
 
Methods inherited from interface java.lang.Iterable
iterator
 

Method Detail

getValue

V getValue()
Returns the value associated with this vertex.

Returns:
The value of the data associated with this vertex.

setValue

void setValue(V value)
Sets the value associated with this vertex.

Parameters:
value - The new value of the data associated with this vertex.

visit

void visit()
Marks the vertex as visited.


isVisited

boolean isVisited()
Returns true if this vertex is visited, otherwise false.

Returns:
true if this vertex is visted, otherwise false.

unvisit

void unvisit()
Marks the vertex as not visited.