public class KruskalGraph<E extends SpanningTreeEdgeData> extends UndirectedWeightedEdgeGraph<E,UndirectedKruskalVertex<E>>
DEFAULT_WEIGHT_EPSILON
Constructor and Description |
---|
KruskalGraph()
Initialize graph to a default initial capacity of 16 vertices
|
KruskalGraph(java.util.Collection<UndirectedKruskalVertex<E>> vertices)
Use the vertices in a collection as the initial vertices in the graph
|
KruskalGraph(java.util.Collection<UndirectedKruskalVertex<E>> vertices,
double weightEpsilon)
Use the vertices in a collection as the initial vertices in the graph and
set weight epsilon to the specified value.
|
KruskalGraph(double weightEpsilon)
Initialize an empty graph using the given value for weightEpsilon and default initial capacity.
|
KruskalGraph(int initialCapacity)
Initialize graph to have capacity for the given number of vertices
|
KruskalGraph(int initialCapacity,
double weightEpsilon)
Initialize an empty graph to have capacity for the given number of vertices and
the specified weight epsilon.
|
areEqualWeights, getWeightedEdges, getWeightEpsilon
edgeCount
addVertex, containsEdge, containsVertex, getVertices, removeVertex, vertexCount, vertexIterator
public KruskalGraph(java.util.Collection<UndirectedKruskalVertex<E>> vertices, double weightEpsilon)
vertices
- collection of vertices that will make up the initial vertices
of the graphweightEpsilon
- weight epsilon to be used to determine weight equality
in this graphpublic KruskalGraph(double weightEpsilon)
weightEpsilon
- weight epsilon to be used to determine weight equality
in this graphpublic KruskalGraph(int initialCapacity, double weightEpsilon)
initialCapacity
- expected number of vertices in the graphweightEpsilon
- weight epsilon to be used to determine weight equality
in this graphpublic KruskalGraph()
public KruskalGraph(java.util.Collection<UndirectedKruskalVertex<E>> vertices)
vertices
- collection of vertices that will make up the initial vertices
of the graphpublic KruskalGraph(int initialCapacity)
initialCapacity
- expected number of vertices