|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.aduna.clustermap.graph.Vertex
public class Vertex
A Vertex represents a node in a Graph. A Vertex has knowledge about the Edges connected to it, and offers utility methods for retrieving neighbouring Vertices in the Graph.
Graph,
Edge| Constructor Summary | |
|---|---|
Vertex()
Create a new Vertex with initially no Edges connected to it. |
|
| Method Summary | |
|---|---|
void |
add(Edge edge)
Adds an Edge to the set of Edges of this Vertex. |
HashSet<Vertex> |
getConnectedVertices()
Returns a set containing all Vertices that are connected to this Vertex following zero or more Edges in the Graph. |
ArrayList<Edge> |
getEdges()
Returns the set of Edges of this Vertex. |
Object |
getLayoutAttribute()
Returns the layout attribute of this Vertex. |
void |
setLayoutAttribute(Object layoutAttribute)
Sets the layout attribute of this Vertex. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Vertex()
| Method Detail |
|---|
public void add(Edge edge)
public ArrayList<Edge> getEdges()
public Object getLayoutAttribute()
public void setLayoutAttribute(Object layoutAttribute)
public HashSet<Vertex> getConnectedVertices()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||