public class MaxPropDijkstra
extends java.lang.Object
| Constructor and Description |
|---|
MaxPropDijkstra(java.util.Map<java.lang.Integer,MeetingProbabilitySet> probs)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.Integer,java.lang.Double> |
getCosts(java.lang.Integer from,
java.util.Set<java.lang.Integer> to)
Calculates total costs to the given set of target nodes.
|
public MaxPropDijkstra(java.util.Map<java.lang.Integer,MeetingProbabilitySet> probs)
probs - A reference to the mapping of the known hosts meeting
probability setspublic java.util.Map<java.lang.Integer,java.lang.Double> getCosts(java.lang.Integer from,
java.util.Set<java.lang.Integer> to)
from - The index (address) of the start nodeto - The address set of destination nodes