|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.aduna.clustermap.graph.Graph
public class Graph
A Graph is a view on a (hierarchy of) populated Classifications, based on the notion of a "cluster". A cluster contains Objects that have exactly the same Classification memberships with respect to a set of Classifications. As such, it provides a means to effectively and efficiently produce a visualization of this set of Classifications.
A Graph contains instances of subclasses of Vertex and Edge. It provides methods for the easy and efficient retrieval of certain parts of the graph structure, such as the collection of all vertices representing Classifications or Objects.
The structure of a Graph is as follows: the hierarchy of Classifications is represented by ClassificationVertices and ClassificationEdges. ClassificationEdges are Edges that point from the superclass to the subclass. For every possible subset of these Classifications there is a ClusterVertex, unless there are no Objects with exactly that configuration of Classification memberships. Each ClusterVertex has references to its corresponding Classifications, as well as to the Objects with that classification. A ClusterVertex is connected to the ClassificationVertices representing its classification through ClusterEdges. These ClusterEdges point from the ClassificationVertices to the ClusterVertices. Finally, all Objects are represented by ObjectVertices, which are not connected to any other Vertices (at least, not using Edges).
| Constructor Summary | |
|---|---|
Graph()
Create an initially empty Graph. |
|
Graph(ClusterModel clusterModel)
Create a Graph whose contents is based on the specified ClusterModel. |
|
| Method Summary | |
|---|---|
void |
add(ClassificationEdge edge)
|
void |
add(ClassificationVertex vertex)
|
void |
add(ClusterEdge edge)
|
void |
add(ClusterVertex vertex)
|
ArrayList<ClassificationEdge> |
getClassificationEdges()
|
ArrayList<ClassificationVertex> |
getClassificationVertices()
|
ArrayList<ClusterEdge> |
getClusterEdges()
|
ClusterModel |
getClusterModel()
|
ArrayList<ClusterVertex> |
getClusterVertices()
|
ArrayList<Graph> |
getConnectedSubgraphs()
Returns a List of Graphs containing disjoint subsets of the Vertices and Edges of this Graph, so that within each one of these Graphs there is a path between each pair of Vertices (ignoring directionality) but there are no connections to Vertices from other Graphs. |
ArrayList<Edge> |
getEdges()
|
GraphRenderer |
getGraphRenderer()
|
ClassificationVertex |
getVertexFor(Classification classification)
|
ClusterVertex |
getVertexFor(Cluster cluster)
|
ArrayList<Vertex> |
getVertices()
|
void |
setGraphRenderer(GraphRenderer renderer)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Graph()
public Graph(ClusterModel clusterModel)
| Method Detail |
|---|
public ArrayList<Vertex> getVertices()
public ArrayList<Edge> getEdges()
public ClusterModel getClusterModel()
public ArrayList<ClusterVertex> getClusterVertices()
public ArrayList<ClassificationVertex> getClassificationVertices()
public ArrayList<ClusterEdge> getClusterEdges()
public ArrayList<ClassificationEdge> getClassificationEdges()
public void setGraphRenderer(GraphRenderer renderer)
public GraphRenderer getGraphRenderer()
public ClusterVertex getVertexFor(Cluster cluster)
public ClassificationVertex getVertexFor(Classification classification)
public void add(ClusterVertex vertex)
public void add(ClassificationVertex vertex)
public void add(ClusterEdge edge)
public void add(ClassificationEdge edge)
public ArrayList<Graph> getConnectedSubgraphs()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||