V
- the graph vertex typeE
- the graph edge typepublic static interface CapacitatedSpanningTreeAlgorithm.CapacitatedSpanningTree<V,E> extends Iterable<E>, SpanningTreeAlgorithm.SpanningTree<E>
Modifier and Type | Method and Description |
---|---|
Map<V,Integer> |
getLabels()
Return the set of labels of the underlying partition of the capacitated spanning tree.
|
Map<Integer,Pair<Set<V>,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,
Map<V,Double> demands)
Tests whether
cmst is a CMST on graph with root
root , capacity capacity and demand function
demands . |
getEdges, getWeight, iterator
forEach, spliterator
boolean isCapacitatedSpanningTree(Graph<V,E> graph, V root, double capacity, Map<V,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 CMSTMap<V,Integer> getLabels()
Copyright © 2019. All rights reserved.