public class DirectedEdgeDataGraph<T,V extends DirectedEdgeDataVertex<T>> extends AbstractGraph<V>
Constructor and Description |
---|
DirectedEdgeDataGraph()
Initialize graph to a default initial capacity of 16 vertices
|
DirectedEdgeDataGraph(java.util.Collection<V> vertices)
Use the vertices in a collection as the initial vertices in the graph
|
DirectedEdgeDataGraph(int initialCapacity)
Initialize graph to have capacity for the given number of vertices
|
Modifier and Type | Method and Description |
---|---|
int |
edgeCount()
Returns the number of edges in the graph.
|
addVertex, containsEdge, containsVertex, getVertices, removeVertex, vertexCount, vertexIterator
public DirectedEdgeDataGraph()
public DirectedEdgeDataGraph(int initialCapacity)
initialCapacity
- expected number of verticespublic DirectedEdgeDataGraph(java.util.Collection<V> vertices)
vertices
- collection of vertices that will make up the initial vertices
of the graphpublic int edgeCount()
AbstractGraph
edgeCount
in class AbstractGraph<V extends DirectedEdgeDataVertex<T>>