|
SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.solarmetric.rd.graph.DepthFirstAnalysis
Performs a depth-first analysis of a given Graph, caching
information about the graph's nodes and edges. See the DFS algorithm
in the book 'Introduction to Algorithms' by Cormen, Leiserson, and
Rivest.
| Field Summary | |
static int |
EDGE_BACK
An edge (u, v) is a back edge if it creates a cycle back to an ancestor in the graph. |
static int |
EDGE_FORWARD
An edge (u, v) is a forward edge if it is not a tree or back edge. |
static int |
EDGE_TREE
An edge (u, v) is a tree edge if node v was first discovered by traversing the edge. |
| Constructor Summary | |
DepthFirstAnalysis(com.solarmetric.rd.graph.Graph graph)
Constructor. |
|
| Method Summary | |
int |
getDiscoveryTime(java.lang.Object node)
Return the logical time that the given node was first discovered in the graph walk, or -1 if the node is not part of the graph. |
com.solarmetric.rd.graph.Edge[] |
getEdges(int type)
Return all edges of the given type. |
int |
getEdgeType(com.solarmetric.rd.graph.Edge edge)
Return the type of the given edge, or -1 if the edge is not part of the graph. |
int |
getFinishedTime(java.lang.Object node)
Return the logical time that the given node was finished in the graph walk, or -1 if the node is not part of the graph. |
java.lang.Object[] |
getSortedNodes()
Return the nodes in topologically-sorted order. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int EDGE_TREE
public static final int EDGE_BACK
public static final int EDGE_FORWARD
| Constructor Detail |
public DepthFirstAnalysis(com.solarmetric.rd.graph.Graph graph)
| Method Detail |
public java.lang.Object[] getSortedNodes()
public int getDiscoveryTime(java.lang.Object node)
public int getFinishedTime(java.lang.Object node)
public int getEdgeType(com.solarmetric.rd.graph.Edge edge)
public com.solarmetric.rd.graph.Edge[] getEdges(int type)
EDGE_BACK edge type.
|
SolarMetric Kodo JDO 2.5.0 Reverse Schema Tool | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||