public interface ArrayBasedGraph
Modifier and Type | Method and Description |
---|---|
void |
addEdge(int u,
int v) |
boolean |
adjacent(int u,
int v) |
int |
degree(int index) |
int[][] |
getEdges() |
java.util.Collection<java.lang.Integer> |
neighbors(int index) |
void |
removeEdge(int u,
int v) |
int |
sizeVertices() |