|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectinfovis.graph.DefaultGraph
infovis.graph.HierarchicalGraph
public class HierarchicalGraph
Graph with vertices being a tree
Field Summary |
---|
Fields inherited from class infovis.graph.DefaultGraph |
---|
FIRSTEDGE_COLUMN, FIRSTINEDGE_COLUMN, GRAPH_METADATA, INVERTEX_COLUMN, LASTEDGE_COLUMN, LASTINEDGE_COLUMN, NEXTEDGE_COLUMN, NEXTINEDGE_COLUMN, OUTVERTEX_COLUMN, PREVEDGE_COLUMN, PREVINEDGE_COLUMN |
Fields inherited from interface infovis.Graph |
---|
GRAPH_TYPE, GRAPH_TYPE_DIRECTED, GRAPH_TYPE_UNDIRECTED, NIL |
Fields inherited from interface infovis.metadata.Constants |
---|
CONTRIBUTOR, COVERAGE, CREATOR, DATE, DESCRITION, FORMAT, IDENTIFIER, LANGUAGE, PUBLISHER, RELATION, RIGHTS, SOURCE, SUBJECT, TITLE, TYPE |
Constructor Summary | |
---|---|
HierarchicalGraph()
|
Method Summary | |
---|---|
int |
addVertex()
Adds a new vertex to the graph. |
int |
addVertex(int parent)
|
void |
clear()
Clears the Graph. |
Tree |
getTree()
|
int |
getVerticesCount()
Returns the number of vertices in the graph |
void |
removeVertex(int vertex)
Removes the specified vertex from the graph. |
RowIterator |
vertexIterator()
Returns an iterator over the vertices of the graph. |
Methods inherited from class infovis.graph.DefaultGraph |
---|
addEdge, addGraphChangedListener, edgeIterator, edgeIterator, findEdge, getClientProperty, getDegree, getEdge, getEdgesCount, getEdgeTable, getFirstVertex, getGraph, getInDegree, getInEdgeAt, getMetadata, getName, getOtherVertex, getOutDegree, getOutEdgeAt, getSecondVertex, getVertexTable, inEdgeIterator, isDirected, outEdgeIterator, removeEdge, removeGraphChangedListener, setDirected, setName, tableChanged |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HierarchicalGraph()
Method Detail |
---|
public void clear()
Graph
After this method, the graph tables are almost in the same state as if it had been created afresh except it contains the same columns as before but they are all cleared.
clear
in interface Graph
clear
in class DefaultGraph
public int addVertex()
DefaultGraph
addVertex
in interface Graph
addVertex
in class DefaultGraph
public int addVertex(int parent)
public void removeVertex(int vertex)
Graph
removeVertex
in interface Graph
removeVertex
in class DefaultGraph
vertex
- the vertex to removepublic Tree getTree()
public int getVerticesCount()
DefaultGraph
getVerticesCount
in interface Graph
getVerticesCount
in class DefaultGraph
public RowIterator vertexIterator()
Graph
vertexIterator
in interface Graph
vertexIterator
in class DefaultGraph
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |