|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectprefuse.data.tuple.AbstractTupleSet
prefuse.data.tuple.CompositeTupleSet
prefuse.data.Graph
prefuse.data.Tree
prefuse.data.SpanningTree
public class SpanningTree
Special tree instance for storing a spanning tree over a graph instance. The spanning tree ensures that only Node and Edge instances from the backing Graph are returned, so requesting nodes, edges, or iterators over this spanning tree will return the desired Node or Edge tuples from the backing graph this tree spans.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class prefuse.data.Graph |
|---|
Graph.Listener |
| Field Summary | |
|---|---|
protected static Schema |
EDGE_SCHEMA
Edge table schema used by the spanning tree. |
protected Graph |
m_backing
A reference to the backing graph that this tree spans. |
static java.lang.String |
SOURCE_EDGE
Extra edge table data field recording the id of the source edge a tree edge represents. |
| Fields inherited from class prefuse.data.Tree |
|---|
CHILDINDEX, DEFAULT_SOURCE_KEY, DEFAULT_TARGET_KEY, m_root, TREE_LINKS_SCHEMA |
| Fields inherited from class prefuse.data.Graph |
|---|
DEFAULT_NODE_KEY, EDGES, INDEGREE, INEDGES, INLINKS, LINKS_SCHEMA, m_directed, m_edgeTuples, m_links, m_longKey, m_nidx, m_nkey, m_nodeTuples, m_skey, m_spanning, m_tkey, NODES, OUTDEGREE, OUTEDGES, OUTLINKS, UNDIRECTED |
| Fields inherited from interface prefuse.data.tuple.TupleSet |
|---|
EMPTY_ARRAY |
| Constructor Summary | |
|---|---|
SpanningTree(Graph g,
Node root)
Create a new SpanningTree. |
|
| Method Summary | |
|---|---|
int |
addChild(int parent)
Unsupported operation. |
Node |
addChild(Node parent)
Unsupported operation. |
int |
addChildEdge(int parent,
int child)
Unsupported operation. |
Edge |
addChildEdge(Node parent,
Node child)
Unsupported operation. |
int |
addEdge(int s,
int t)
Unsupported operation. |
Edge |
addEdge(Node s,
Node t)
Unsupported operation. |
Node |
addNode()
Unsupported operation. |
int |
addNodeRow()
Unsupported operation. |
Node |
addRoot()
Unsupported operation. |
int |
addRootRow()
Unsupported operation. |
void |
buildSpanningTree(Node root)
Build the spanning tree, starting at the given root. |
void |
clear()
Unsupported operation. |
boolean |
removeChild(int node)
Unsupported operation. |
boolean |
removeChild(Node n)
Unsupported operation. |
boolean |
removeChildEdge(Edge e)
Unsupported operation. |
boolean |
removeChildEdge(int edge)
Unsupported operation. |
boolean |
removeEdge(Edge e)
Unsupported operation. |
boolean |
removeEdge(int edge)
Unsupported operation. |
boolean |
removeNode(int node)
Unsupported operation. |
boolean |
removeNode(Node n)
Unsupported operation. |
boolean |
removeTuple(Tuple t)
Unsupported operation. |
void |
setEdgeTable(Table edges)
Unsupported operation. |
void |
setTupleManagers(TupleManager ntm,
TupleManager etm)
Unsupported operation. |
| Methods inherited from class prefuse.data.Tree |
|---|
childEdgeRows, childEdges, children, createLinkTable, getChild, getChildCount, getChildIndex, getChildIndex, getChildRow, getDepth, getFirstChild, getFirstChildRow, getLastChild, getLastChildRow, getNextSibling, getNextSiblingRow, getParent, getParent, getParentEdge, getParentEdge, getPreviousSibling, getPreviousSiblingRow, getRoot, getRootRow, getSpanningTree, getSpanningTree, isValidTree, updateDegrees |
| Methods inherited from class prefuse.data.tuple.CompositeTupleSet |
|---|
addColumn, addColumn, addColumn, addColumn, addSet, addTuple, containsSet, containsTuple, getSet, getTupleCount, hasSet, isAddColumnSupported, removeAllSets, removeSet, setNames, sets, setTuple |
| Methods inherited from class prefuse.data.tuple.AbstractTupleSet |
|---|
addColumns, addPropertyChangeListener, addPropertyChangeListener, addTupleSetListener, fireTupleEvent, fireTupleEvent, fireTupleEvent, getClientProperty, putClientProperty, removePropertyChangeListener, removePropertyChangeListener, removeTupleSetListener, tuples |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String SOURCE_EDGE
protected static final Schema EDGE_SCHEMA
protected Graph m_backing
| Constructor Detail |
|---|
public SpanningTree(Graph g,
Node root)
g - the backing Graph to spanroot - the Node to use as the root of the spanning tree| Method Detail |
|---|
public void buildSpanningTree(Node root)
root - the root node of the spanning treepublic int addChild(int parent)
addChild in class Treeparent - the parent node id (node table row number)
Tree.addChild(int)public Node addChild(Node parent)
addChild in class Treeparent - the parent node
Tree.addChild(prefuse.data.Node)
public int addChildEdge(int parent,
int child)
addChildEdge in class Treeparent - the parent node id (node table row number)child - the child node id (node table row number)
Tree.addChildEdge(int, int)
public Edge addChildEdge(Node parent,
Node child)
addChildEdge in class Treeparent - the parent nodechild - the child node
Tree.addChildEdge(prefuse.data.Node, prefuse.data.Node)public Node addRoot()
addRoot in class TreeTree.addRoot()public int addRootRow()
addRootRow in class TreeTree.addRootRow()public boolean removeChild(int node)
removeChild in class Treenode - the node id (node table row number) to remove
Tree.removeChild(int)public boolean removeChild(Node n)
removeChild in class Treen - the node to remove
Tree.removeChild(prefuse.data.Node)public boolean removeChildEdge(Edge e)
removeChildEdge in class Treee - the edge to remove
Tree.removeChildEdge(prefuse.data.Edge)public boolean removeChildEdge(int edge)
removeChildEdge in class Treeedge - the edge id (edge table row number) of the edge to remove
Tree.removeChildEdge(int)
public int addEdge(int s,
int t)
addEdge in class Graphs - the source node idt - the target node id
Graph.addEdge(int, int)
public Edge addEdge(Node s,
Node t)
addEdge in class Graphs - the source Nodet - the target Node
Graph.addEdge(prefuse.data.Node, prefuse.data.Node)public Node addNode()
addNode in class GraphGraph.addNode()public int addNodeRow()
addNodeRow in class GraphGraph.addNodeRow()public void clear()
clear in interface TupleSetclear in class GraphTupleSet.clear()public boolean removeEdge(Edge e)
removeEdge in class Graphe - the Edge to remove from the graph
Graph.removeEdge(prefuse.data.Edge)public boolean removeEdge(int edge)
removeEdge in class Graphedge - the edge id (edge table row number) of the edge to remove
Graph.removeEdge(int)public boolean removeNode(int node)
removeNode in class Graphnode - the node id (node table row number) of the node to remove
Graph.removeNode(int)public boolean removeNode(Node n)
removeNode in class Graphn - the Node to remove from the graph
Graph.removeNode(prefuse.data.Node)public boolean removeTuple(Tuple t)
removeTuple in interface TupleSetremoveTuple in class Grapht - the Tuple to remove
TupleSet.removeTuple(prefuse.data.Tuple)public void setEdgeTable(Table edges)
setEdgeTable in class Graphedges - the new edge table.Graph.setEdgeTable(prefuse.data.Table)
public void setTupleManagers(TupleManager ntm,
TupleManager etm)
setTupleManagers in class Graphntm - the TupleManager to use for nodesetm - the TupleManager to use for edgesGraph.setTupleManagers(prefuse.data.tuple.TupleManager, prefuse.data.tuple.TupleManager)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||