|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ImmutableGraphEltSet provides access to the elements of GraphElementSet that does not allow for addition or deletion of nodes or edges.
Method Summary | |
int |
edgeCount()
Return the number of Edges in the cumulative Vector. |
int |
edgeNum()
Deprecated. this method has been replaced by the edgeCount() method. |
Edge |
findEdge(Node from,
Node to)
Return an Edge spanning Node from to Node to. |
Node |
findNode(java.lang.String id)
Return the Node whose ID matches the String id, null if no match is found. |
Node |
findNodeLabelContaining(java.lang.String substring)
Return the first Nodes whose label contains the String substring, null if no match is found. |
java.util.Collection |
findNodesByLabel(java.lang.String label)
Return a Collection of all Nodes whose label matches the String label, null if no match is found. |
void |
forAllEdges(TGForEachEdge fee)
iterates through Edges. |
void |
forAllNodePairs(TGForEachNodePair fenp)
iterates through pairs of Nodes. |
void |
forAllNodes(TGForEachNode fen)
iterates through all the nodes. |
java.util.Iterator |
getEdges()
Return an iterator over the Edges in the cumulative Vector, null if it is empty. |
Node |
getFirstNode()
Return the first Node, null if none exist. |
java.util.Iterator |
getNodes()
Return an iterator over the Nodes in the cumulative Vector, null if it is empty. |
Node |
getRandomNode()
Returns a random node, or null if none exist (for making random graphs). |
int |
nodeCount()
Return the number of Nodes in the cumulative Vector. |
int |
nodeNum()
Deprecated. this method has been replaced by the nodeCount() method. |
Method Detail |
public int nodeCount()
public int nodeNum()
public java.util.Iterator getNodes()
public int edgeCount()
public int edgeNum()
public java.util.Iterator getEdges()
public Node findNode(java.lang.String id)
public java.util.Collection findNodesByLabel(java.lang.String label)
public Node findNodeLabelContaining(java.lang.String substring)
public Edge findEdge(Node from, Node to)
public Node getRandomNode()
public Node getFirstNode()
public void forAllNodes(TGForEachNode fen)
public void forAllNodePairs(TGForEachNodePair fenp)
public void forAllEdges(TGForEachEdge fee)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |