|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgmm.DirectedGraph
public class DirectedGraph
Constructor Summary | |
---|---|
DirectedGraph(int numberOfNodes)
Creates an empty graph with the specified number of nodes. |
Method Summary | |
---|---|
void |
add(int from,
int to)
Adds the specified edge to the graph, and others that might be needed to maintain transitive closure. |
int[] |
getTopologicalSort()
Assumes that an edge exists between any pair of nodes i and j. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DirectedGraph(int numberOfNodes)
Method Detail |
---|
public void add(int from, int to)
from
- to
- public int[] getTopologicalSort()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |