salvo.jesus.graph
Interface DirectedEdge

All Superinterfaces:
Edge, java.io.Serializable
All Known Implementing Classes:
DirectedEdgeImpl, DirectedEdgeWeakImpl, NamedEdge

public interface DirectedEdge
extends Edge

Represents a directed edge in a graph.

Author:
Jesus M. Salvo Jr.

Field Summary
static int DIRECTION_A_TO_B
           
static int DIRECTION_B_TO_A
           
static int NODIRECTION
           
 
Method Summary
 int getDirection()
          Returns the direction of the Edge
 Vertex getSink()
          Returns the sink Vertex of the edge.
 Vertex getSource()
          Returns the source Vertex of the edge.
 
Methods inherited from interface salvo.jesus.graph.Edge
getObject, getOppositeVertex, getVertexA, getVertexB, setObject, toString
 

Field Detail

DIRECTION_A_TO_B

static final int DIRECTION_A_TO_B
See Also:
Constant Field Values

DIRECTION_B_TO_A

static final int DIRECTION_B_TO_A
See Also:
Constant Field Values

NODIRECTION

static final int NODIRECTION
See Also:
Constant Field Values
Method Detail

getSource

Vertex getSource()
Returns the source Vertex of the edge.

Returns:
The source Vertex.

getSink

Vertex getSink()
Returns the sink Vertex of the edge.

Returns:
The sink Vertex.

getDirection

int getDirection()
Returns the direction of the Edge