drasys.or.graph
Interface ElementI

All Known Subinterfaces:
EdgeI, VertexI

public interface ElementI

The interface used by all algorithms to access graph elements.


Method Summary
 GraphI getGraph()
          Returns the graph that owns the element.
 boolean isEdge()
          Returns true if the graph element is an edge.
 boolean isVertex()
          Returns true if the graph element is a vertex.
 

Method Detail

getGraph

public GraphI getGraph()
Returns the graph that owns the element.

isVertex

public boolean isVertex()
Returns true if the graph element is a vertex.

isEdge

public boolean isEdge()
Returns true if the graph element is an edge.


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