V - the graph vertex typeE - the graph edge typepublic static interface CapacitatedSpanningTreeAlgorithm.CapacitatedSpanningTree<V,E> extends java.lang.Iterable<E>, SpanningTreeAlgorithm.SpanningTree<E>
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<V,java.lang.Integer> |
getLabels()
Return the set of labels of the underlying partition of the capacitated spanning tree.
|
java.util.Map<java.lang.Integer,Pair<java.util.Set<V>,java.lang.Double>> |
getPartition()
Return the label-to-partition map of the underlying partition of capacitated spanning
tree.
|
boolean |
isCapacitatedSpanningTree(Graph<V,E> graph,
V root,
double capacity,
java.util.Map<V,java.lang.Double> demands)
Tests whether
cmst is a CMST on graph with root
root, capacity capacity and demand function
demands. |
getEdges, getWeight, iteratorboolean isCapacitatedSpanningTree(Graph<V,E> graph, V root, double capacity, java.util.Map<V,java.lang.Double> demands)
cmst is a CMST on graph with root
root, capacity capacity and demand function
demands.graph - the graphroot - the expected root of cmstcapacity - the expected capacity of cmstdemands - the demand functioncmst is a CMSTjava.util.Map<V,java.lang.Integer> getLabels()
Copyright © 2019. All Rights Reserved.