V
- E
- public class MinimumSpanningForest2<V,E> extends Object
Modifier and Type | Field and Description |
---|---|
protected Forest<V,E> |
forest |
protected Graph<V,E> |
graph |
protected org.apache.commons.collections4.Transformer<E,Double> |
weights |
Constructor and Description |
---|
MinimumSpanningForest2(Graph<V,E> graph,
org.apache.commons.collections4.Factory<Forest<V,E>> factory,
org.apache.commons.collections4.Factory<? extends Graph<V,E>> treeFactory,
org.apache.commons.collections4.Transformer<E,Double> weights)
create a Forest from the supplied Graph and supplied Factory, which
is used to create a new, empty Forest.
|
MinimumSpanningForest2(Graph<V,E> graph,
Forest<V,E> forest,
org.apache.commons.collections4.Factory<? extends Graph<V,E>> treeFactory,
org.apache.commons.collections4.Transformer<E,Double> weights)
create a forest from the supplied graph, populating the
supplied Forest, which must be empty.
|
public MinimumSpanningForest2(Graph<V,E> graph, org.apache.commons.collections4.Factory<Forest<V,E>> factory, org.apache.commons.collections4.Factory<? extends Graph<V,E>> treeFactory, org.apache.commons.collections4.Transformer<E,Double> weights)
graph
- factory
- weights
- public MinimumSpanningForest2(Graph<V,E> graph, Forest<V,E> forest, org.apache.commons.collections4.Factory<? extends Graph<V,E>> treeFactory, org.apache.commons.collections4.Transformer<E,Double> weights)
graph
- the Graph to find MST inforest
- the Forest to populate. Must be emptyweights
- edge weights, may be nullCopyright © 2015. All rights reserved.