public class TopologicalGraph
extends java.lang.Object
| Constructor and Description |
|---|
TopologicalGraph()
just the constructor to create an empty graph-object
|
| Modifier and Type | Method and Description |
|---|---|
void |
addLink(TopologicalLink edge)
adds an link between two topological nodes
|
void |
addNode(TopologicalNode node)
adds an Topological Node to this graph
|
java.util.Iterator<TopologicalLink> |
getLinkIterator()
return an iterator through all network-graph links
|
java.util.Iterator<TopologicalNode> |
getNodeIterator()
returns an iterator through all network-graph nodes
|
int |
getNumberOfLinks()
returns the number of links contained inside the topological-graph
|
int |
getNumberOfNodes()
returns the number of nodes contained inside the topological-graph
|
java.lang.String |
toString()
prints out all internal node and link information
|
public TopologicalGraph()
public void addLink(TopologicalLink edge)
edge - the topological linkpublic void addNode(TopologicalNode node)
node - the topological node to addpublic int getNumberOfNodes()
public int getNumberOfLinks()
public java.util.Iterator<TopologicalLink> getLinkIterator()
public java.util.Iterator<TopologicalNode> getNodeIterator()
public java.lang.String toString()
toString in class java.lang.Object