Interface CapacitatedSpanningTreeAlgorithm.CapacitatedSpanningTree<V,E>
- Type Parameters:
V- the graph vertex typeE- the graph edge type
- All Superinterfaces:
Iterable<E>, SpanningTreeAlgorithm.SpanningTree<E>
- All Known Implementing Classes:
CapacitatedSpanningTreeAlgorithm.CapacitatedSpanningTreeImpl
- Enclosing interface:
CapacitatedSpanningTreeAlgorithm<V,E>
public static interface CapacitatedSpanningTreeAlgorithm.CapacitatedSpanningTree<V,E>
extends Iterable<E>, SpanningTreeAlgorithm.SpanningTree<E>
A spanning tree.
-
Method Summary
Modifier and TypeMethodDescriptionReturn the set of labels of the underlying partition of the capacitated spanning tree.Return the label-to-partition map of the underlying partition of capacitated spanning tree.booleanTests whethercmstis a CMST ongraphwith rootroot, capacitycapacityand demand functiondemands.Methods inherited from interface Iterable
forEach, spliteratorMethods inherited from interface SpanningTreeAlgorithm.SpanningTree
getEdges, getWeight, iterator
-
Method Details
-
isCapacitatedSpanningTree
Tests whethercmstis a CMST ongraphwith rootroot, capacitycapacityand demand functiondemands.- Parameters:
graph- the graphroot- the expected root of cmstcapacity- the expected capacity of cmstdemands- the demand function- Returns:
- whether
cmstis a CMST
-
getLabels
-
getPartition
-