T - NodeValueTypepublic class ShortestPath<T>
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static <NodeValueType> |
compute(DirectedHyperGraph<NodeValueType> graph,
HyperNode<NodeValueType> source,
java.util.Comparator<Weight> comparator)
Computes all shortest paths from source.
|
public static <NodeValueType> void compute(DirectedHyperGraph<NodeValueType> graph, HyperNode<NodeValueType> source, java.util.Comparator<Weight> comparator)
HyperNode.getWeight().
This is using a variation of Bellman-Ford for hyper graphs.
comparator - defines order on weights.