public interface Graph<V extends Node>
Modifier and Type | Method and Description |
---|---|
void |
addEdge(V d,
V a) |
void |
addNode(V v) |
boolean |
adjacent(V d,
V a) |
int |
degree(V v) |
java.util.Collection<V> |
getNeighbors(V v) |
void |
removeEdge(V d,
V a) |
void |
removeNode(V v) |
int |
sizeVertices() |