drasys.or.graph
Interface EdgeI

All Known Implementing Classes:
EdgeBase

public interface EdgeI
extends ElementI, EdgeValueI

The interface used by all algorithms to access edge features.


Method Summary
 VertexI getFromVertex()
          Returns the vertex adjacent to the 'from' end of the edge.
 int getIndex()
          The index of the edge in the graph.
 java.lang.Object getKey()
          Returns the edge key.
 GraphI getSubgraph()
          Returns the subgraph of the edge.
 VertexI getToVertex()
          Returns the vertex adjacent to the 'to' end of the edge.
 java.lang.Object getValue()
          Returns the edge value.
 boolean isDirected()
          Returns true if the edge is directed.
 
Methods inherited from interface drasys.or.graph.ElementI
getGraph, isEdge, isVertex
 
Methods inherited from interface drasys.or.graph.EdgeValueI
getCost, getDistance, getTime
 

Method Detail

getIndex

public int getIndex()
The index of the edge in the graph. All edges are numbered sequentially starting at zero.

getKey

public java.lang.Object getKey()
Returns the edge key.

getValue

public java.lang.Object getValue()
Returns the edge value.

getToVertex

public VertexI getToVertex()
Returns the vertex adjacent to the 'to' end of the edge.

getFromVertex

public VertexI getFromVertex()
Returns the vertex adjacent to the 'from' end of the edge.

isDirected

public boolean isDirected()
Returns true if the edge is directed.

getSubgraph

public GraphI getSubgraph()
Returns the subgraph of the edge.


Copyright(C)1997-2000 by DRA Systems all rights reserved. OpsResearch.com