public class DfsGraph<E extends DfsEdgeData> extends DirectedEdgeDataGraph<E,DirectedDfsVertex<E>>
Constructor and Description |
---|
DfsGraph()
Initialize graph to a default initial capacity of 16 vertices
|
DfsGraph(java.util.Collection<DirectedDfsVertex<E>> vertices)
Use the vertices in a collection as the initial vertices in the graph
|
DfsGraph(int initialCapacity)
Initialize graph to have capacity for the given number of vertices
|
edgeCount
addVertex, containsEdge, containsVertex, getVertices, removeVertex, vertexCount, vertexIterator
public DfsGraph()
public DfsGraph(int initialCapacity)
initialCapacity
- expected number of verticespublic DfsGraph(java.util.Collection<DirectedDfsVertex<E>> vertices)
vertices
- collection of vertices that will make up the initial vertices
of the graph