|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The interface used by all algorithms to access graphs abstractly.
Graph
,
DenseGraph
,
SparseGraph
,
PointGraph
,
MatrixGraph
Method Summary | |
java.util.Enumeration |
edges()
Creates an enumeration on the edges of the graph. |
int |
getChangeCount()
Returns the number of changes that have been made to a graph. |
EdgeI |
getEdge(EdgeI edge)
Get an edge using the keys in the 'edge' argument. |
EdgeI |
getEdge(java.lang.Object fromKey,
java.lang.Object toKey,
java.lang.Object edgeKey)
Get the edge between the from and to vertices whose key matches 'edgeKey'. |
EdgeI |
getEdge(VertexI from,
VertexI to,
java.lang.Object key)
Get the edge between the from and to vertices whose key matches 'edgeKey'. |
EdgeI |
getMutableEdge(VertexI from,
VertexI to,
java.lang.Object edgeKey)
Get the edge between the from and to vertices whose key matches 'edgeKey'. |
VertexI |
getVertex(java.lang.Object key)
Get the vertex that matches the key. |
boolean |
isSubsetOf(GraphI graph)
A graph is a subset of another if all its elements are contained in the other. |
boolean |
isSymmetric()
Returns either the forced value from 'setSymmetric' or the graph's automatically determined symmetry. |
java.util.Enumeration |
mutableEdges()
Creates an enumeration on the edges of the graph. |
void |
setSymmetric(java.lang.Boolean symmetric)
Forces algorithms to treat the graph as either symmetric or asymetric. |
int |
sizeOfDirectedEdges()
|
int |
sizeOfEdges()
|
int |
sizeOfVertices()
|
java.util.Enumeration |
vertices()
Creates an enumeration on the vertices of the graph. |
Method Detail |
public void setSymmetric(java.lang.Boolean symmetric)
public boolean isSymmetric()
public int getChangeCount()
public int sizeOfVertices()
public java.util.Enumeration vertices()
public VertexI getVertex(java.lang.Object key)
public int sizeOfEdges()
public int sizeOfDirectedEdges()
public java.util.Enumeration edges()
public java.util.Enumeration mutableEdges()
public EdgeI getEdge(EdgeI edge)
public EdgeI getEdge(java.lang.Object fromKey, java.lang.Object toKey, java.lang.Object edgeKey)
public EdgeI getMutableEdge(VertexI from, VertexI to, java.lang.Object edgeKey)
public EdgeI getEdge(VertexI from, VertexI to, java.lang.Object key)
public boolean isSubsetOf(GraphI graph)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |