|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg._3pq.jgrapht.graph.AbstractGraph
org._3pq.jgrapht.graph.AbstractBaseGraph
org._3pq.jgrapht.graph.DefaultDirectedGraph
edu.iastate.metnet.aracyc.GenericTree
public class GenericTree
tree structure
| Constructor Summary | |
|---|---|
GenericTree()
|
|
| Method Summary | |
|---|---|
int |
childCount(java.lang.Object vertex)
the child count |
java.util.Set |
getAscendant(java.lang.Object vertex)
get the ascendant of te current node |
java.util.Set |
getChildren(java.lang.Object vertex)
get the child node |
java.util.Set |
getDescendant(java.lang.Object vertex)
get all descendant of the current vertex |
java.util.Set |
getLeaves()
get the outdegree = 0's node in this graph |
java.util.Set |
getLeaves(java.lang.Object vertex)
get the leaves in the subtree rooted by current node |
java.util.Set |
getOrphans()
|
java.util.Set |
getParent(java.lang.Object vertex)
|
java.util.Set |
getRoots()
get the root of the tree, in which the root has only outdegree > 0 but indegree = 0 |
java.util.Set |
getRoots(java.lang.Object vertex)
return the root in the ascendant of the current node |
| Methods inherited from class org._3pq.jgrapht.graph.AbstractBaseGraph |
|---|
addEdge, addEdge, addVertex, clone, containsEdge, containsVertex, degreeOf, edgeSet, edgesOf, getAllEdges, getEdge, getEdgeFactory, incomingEdgesOf, inDegreeOf, isAllowingLoops, isAllowingMultipleEdges, outDegreeOf, outgoingEdgesOf, removeEdge, removeEdge, removeVertex, setEdgeListFactory, vertexSet |
| Methods inherited from class org._3pq.jgrapht.graph.AbstractGraph |
|---|
addAllEdges, addAllVertices, assertVertexExist, containsEdge, removeAllEdges, removeAllEdges, removeAllEdges, removeAllVertices, toString, toStringFromSets |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org._3pq.jgrapht.DirectedGraph |
|---|
incomingEdgesOf, inDegreeOf, outDegreeOf, outgoingEdgesOf |
| Methods inherited from interface org._3pq.jgrapht.Graph |
|---|
addAllEdges, addAllVertices, addEdge, addEdge, addVertex, containsEdge, containsEdge, containsVertex, edgeSet, edgesOf, getAllEdges, getEdge, getEdgeFactory, removeAllEdges, removeAllEdges, removeAllVertices, removeEdge, removeEdge, removeVertex, vertexSet |
| Constructor Detail |
|---|
public GenericTree()
| Method Detail |
|---|
public java.util.Set getRoots()
public java.util.Set getRoots(java.lang.Object vertex)
vertex - the current node
public java.util.Set getChildren(java.lang.Object vertex)
vertex - current node
public int childCount(java.lang.Object vertex)
vertex - curent node
public java.util.Set getParent(java.lang.Object vertex)
public java.util.Set getLeaves()
public java.util.Set getLeaves(java.lang.Object vertex)
vertex -
public java.util.Set getOrphans()
public java.util.Set getDescendant(java.lang.Object vertex)
public java.util.Set getAscendant(java.lang.Object vertex)
vertex - the current node
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||