public class PrimMinimumSpanningTree<V,E> extends Object implements MinimumSpanningTree<V,E>
Constructor and Description |
---|
PrimMinimumSpanningTree(Graph<V,E> g) |
Modifier and Type | Method and Description |
---|---|
Set<E> |
getMinimumSpanningTreeEdgeSet()
Returns edges set constituting the minimum spanning tree/forest
|
double |
getMinimumSpanningTreeTotalWeight()
Returns total weight of the minimum spanning tree/forest.
|
public Set<E> getMinimumSpanningTreeEdgeSet()
MinimumSpanningTree
getMinimumSpanningTreeEdgeSet
in interface MinimumSpanningTree<V,E>
public double getMinimumSpanningTreeTotalWeight()
MinimumSpanningTree
getMinimumSpanningTreeTotalWeight
in interface MinimumSpanningTree<V,E>
Copyright © 2016. All rights reserved.