public class Graph extends Object
| Constructor and Description |
|---|
Graph(int maximumVertices) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEdge(int start,
int end)
Adds an edge where
end depends on start |
int |
addVertex(char lab) |
void |
deleteVertex(int delVert) |
void |
displayVertex(int v) |
int |
noSuccessors() |
char[] |
topologicalSort() |
public int addVertex(char lab)
public void addEdge(int start,
int end)
end depends on startstart - dependeeend - dependentpublic void displayVertex(int v)
public char[] topologicalSort()
public int noSuccessors()
public void deleteVertex(int delVert)
Copyright © 2012-2016. All Rights Reserved.