|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfuzzydl.graph.Digraph
public class Digraph
| Constructor Summary | |
|---|---|
Digraph(int V)
Constructor of an empty digraph with V vertices. |
|
| Method Summary | |
|---|---|
void |
addEdge(int v,
int w)
Adds the directed edge v-w to the digraph. |
fuzzydl.graph.Bag<java.lang.Integer> |
getAdj(int v)
Gets the array of elements adjacent to a node. |
int |
numVertices()
Gets the number of vertices in the digraph. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Digraph(int V)
V - Number of vertices.| Method Detail |
|---|
public int numVertices()
public void addEdge(int v,
int w)
v - Source node.w - Target node.public fuzzydl.graph.Bag<java.lang.Integer> getAdj(int v)
v - A node of the graph.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||