graph
Interface Graph.Edge<V,E>

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

public static interface Graph.Edge<V,E>

Represents an edge in a 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.
 

Method Detail

getValue

E getValue()
Returns the value associated with this edge.

Returns:
The value associated with this edge.

setValue

void setValue(E value)
Sets the value associated with this edge.

Parameters:
value - The new value associated with this edge.

source

Graph.Vertex<V,E> source()
Returns the source vertex of this edge.

Returns:
The source vertex of this edge.

destination

Graph.Vertex<V,E> destination()
Returns the destination vertex of this edge.

Returns:
The destination vertex of this edge.