public class KruskalMinimumSpanningTree<V,E> extends Object implements MinimumSpanningTree<V,E>
Constructor and Description |
---|
KruskalMinimumSpanningTree(Graph<V,E> graph)
Creates and executes a new KruskalMinimumSpanningTree algorithm instance.
|
Modifier and Type | Method and Description |
---|---|
Set<E> |
getEdgeSet()
Deprecated.
|
Set<E> |
getMinimumSpanningTreeEdgeSet()
Returns edges set constituting the minimum spanning tree/forest
|
double |
getMinimumSpanningTreeTotalWeight()
Returns total weight of the minimum spanning tree/forest.
|
double |
getSpanningTreeCost()
Deprecated.
|
public KruskalMinimumSpanningTree(Graph<V,E> graph)
graph
- the graph to be searchedpublic Set<E> getMinimumSpanningTreeEdgeSet()
MinimumSpanningTree
getMinimumSpanningTreeEdgeSet
in interface MinimumSpanningTree<V,E>
public double getMinimumSpanningTreeTotalWeight()
MinimumSpanningTree
getMinimumSpanningTreeTotalWeight
in interface MinimumSpanningTree<V,E>
@Deprecated public Set<E> getEdgeSet()
@Deprecated public double getSpanningTreeCost()
Copyright © 2016. All rights reserved.