V
- the graph vertex typeE
- the graph edge typepublic class PrimMinimumSpanningTree<V,E> extends Object implements SpanningTreeAlgorithm<E>
SpanningTreeAlgorithm.SpanningTree<E>, SpanningTreeAlgorithm.SpanningTreeImpl<E>
Constructor and Description |
---|
PrimMinimumSpanningTree(Graph<V,E> graph)
Construct a new instance of the algorithm.
|
Modifier and Type | Method and Description |
---|---|
SpanningTreeAlgorithm.SpanningTree<E> |
getSpanningTree()
Computes a spanning tree.
|
public SpanningTreeAlgorithm.SpanningTree<E> getSpanningTree()
getSpanningTree
in interface SpanningTreeAlgorithm<E>
Copyright © 2019. All rights reserved.