public class UndirectedEdgeDataGraph<E,V extends UndirectedEdgeDataVertex<E>> extends AbstractGraph<V>
Constructor and Description |
---|
UndirectedEdgeDataGraph()
Initialize graph to a default initial capacity of 16 vertices
|
UndirectedEdgeDataGraph(java.util.Collection<V> vertices)
Use the vertices in a collection as the initial vertices in the graph
|
UndirectedEdgeDataGraph(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 UndirectedEdgeDataGraph()
public UndirectedEdgeDataGraph(int initialCapacity)
initialCapacity
- expected number of verticespublic UndirectedEdgeDataGraph(java.util.Collection<V> vertices)
vertices
- collection of vertices that will make up the initial vertices
of the graphpublic final int edgeCount()
AbstractGraph
edgeCount
in class AbstractGraph<V extends UndirectedEdgeDataVertex<E>>