org.apache.commons.graph
Interface Edge<V extends Vertex>

Type Parameters:
V - the Graph vertices type
All Known Subinterfaces:
LabeledEdge<V>, LabeledWeightedEdge<V>, WeightedEdge<V>

public interface Edge<V extends Vertex>

An Edge is the link that connect a pair of Vertex. A Graph in which Edges have no orientation, Vertex members are not ordered pairs. In a DirectedGraph, Edges have orientation, so relation expressed by the Edge has to be intended from getHead() to getTail().


Method Summary
 V getHead()
          Return the head of this edge.
 V getTail()
          Return the tail of this edge.
 

Method Detail

getHead

V getHead()
Return the head of this edge.

Returns:
the head of this edge.

getTail

V getTail()
Return the tail of this edge.

Returns:
the tail of this edge.


Copyright © 2001-2011 The Apache Software Foundation. All Rights Reserved.