V
- the vertex typeE
- the edge typepublic class PrimMinimumSpanningTree<V,E> extends Object implements org.apache.commons.collections4.Transformer<Graph<V,E>,Graph<V,E>>
Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.collections4.Factory<? extends Graph<V,E>> |
treeFactory |
protected org.apache.commons.collections4.Transformer<E,Double> |
weights |
Constructor and Description |
---|
PrimMinimumSpanningTree(org.apache.commons.collections4.Factory<? extends Graph<V,E>> factory)
Creates an instance which generates a minimum spanning tree assuming constant edge weights.
|
PrimMinimumSpanningTree(org.apache.commons.collections4.Factory<? extends Graph<V,E>> factory,
org.apache.commons.collections4.Transformer<E,Double> weights)
Creates an instance which generates a minimum spanning tree using the input edge weights.
|
public PrimMinimumSpanningTree(org.apache.commons.collections4.Factory<? extends Graph<V,E>> factory)
Copyright © 2015. All rights reserved.