E - the type of edge in the graphpublic class Graph<E extends DirectedEdge<?,E>>
extends java.lang.Object
EdgeList| Modifier and Type | Field and Description |
|---|---|
EdgeList<E> |
edges
The
EdgeList of edges in the graph |
int |
vertices
The number of vertices in the graph
|
| Constructor and Description |
|---|
Graph(int vertices,
EdgeList<E> edges)
Creates a new Graph with the given number of vertices and the
EdgeList |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
toString() |
public final int vertices
public final EdgeList<E extends DirectedEdge<?,E>> edges
EdgeList of edges in the graph