info.aduna.clustermap.graph
Class Vertex

java.lang.Object
  extended by info.aduna.clustermap.graph.Vertex
Direct Known Subclasses:
ClassificationVertex, ClusterVertex

public class Vertex
extends Object

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.

See Also:
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

Vertex

public Vertex()
Create a new Vertex with initially no Edges connected to it.

Method Detail

add

public void add(Edge edge)
Adds an Edge to the set of Edges of this Vertex.


getEdges

public ArrayList<Edge> getEdges()
Returns the set of Edges of this Vertex.


getLayoutAttribute

public Object getLayoutAttribute()
Returns the layout attribute of this Vertex.


setLayoutAttribute

public void setLayoutAttribute(Object layoutAttribute)
Sets the layout attribute of this Vertex.


getConnectedVertices

public HashSet<Vertex> getConnectedVertices()
Returns a set containing all Vertices that are connected to this Vertex following zero or more Edges in the Graph.



Copyright © 1997-2008 Aduna. All Rights Reserved.