pedviz.graph
Class Cluster

java.lang.Object
  extended by pedviz.graph.Cluster

public class Cluster
extends java.lang.Object

This class can contain any nodes you like.

Version:
0.1
Author:
Lukas Forer

Constructor Summary
Cluster()
          Creates a new and empty Cluster.
Cluster(java.util.Set<Node> nodes)
          Creates a new and empty Cluster.
Cluster(java.util.Vector<Node> nodes)
          Creates a new and empty Cluster.
 
Method Summary
 void addNode(Node node)
          Adds the given node.
 java.util.ArrayList<Edge> getEdges()
          Returns a collection of all edges.
 java.util.Collection<Node> getNodes()
          Returns a collection of all nodes.
 void removeNode(Node node)
          Removes the given node.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Cluster

public Cluster()
Creates a new and empty Cluster.


Cluster

public Cluster(java.util.Vector<Node> nodes)
Creates a new and empty Cluster.


Cluster

public Cluster(java.util.Set<Node> nodes)
Creates a new and empty Cluster.

Method Detail

addNode

public void addNode(Node node)
Adds the given node.

Parameters:
node - Node object.

removeNode

public void removeNode(Node node)
Removes the given node.

Parameters:
node - Node object.

getNodes

public java.util.Collection<Node> getNodes()
Returns a collection of all nodes.

Returns:
a collection of all nodes.

getEdges

public java.util.ArrayList<Edge> getEdges()
Returns a collection of all edges.

Returns:
a collection of all edges.