|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectpedviz.graph.Cluster
public class Cluster
This class can contain any nodes you like.
| 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 |
|---|
public Cluster()
public Cluster(java.util.Vector<Node> nodes)
public Cluster(java.util.Set<Node> nodes)
| Method Detail |
|---|
public void addNode(Node node)
node - Node object.public void removeNode(Node node)
node - Node object.public java.util.Collection<Node> getNodes()
public java.util.ArrayList<Edge> getEdges()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||