public class TopologicalGraph extends 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
|
Iterator<TopologicalLink> |
getLinkIterator()
return an iterator through all network-graph links
|
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
|
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 Iterator<TopologicalLink> getLinkIterator()
public Iterator<TopologicalNode> getNodeIterator()
Copyright © 2012 The Cloud Computing and Distributed Systems (CLOUDS) Laboratory, The University of Melbourne. All Rights Reserved.