public class PathUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static <V extends WeightedVertex & ChildVertex> |
initializeSingleSource(AbstractGraph<V> graph,
V source)
CLRS, p.
|
static <E extends EdgeWeightData,V extends WeightedVertex & ChildVertex & EdgeWeightVertex<E>> |
relax(V u,
V v)
CLRS, p.
|
public static final <V extends WeightedVertex & ChildVertex> void initializeSingleSource(AbstractGraph<V> graph, V source)
graph
- graph on whose vertex the operation is to be performedsource
- vertex whose initial distance is to be set to 0public static final <E extends EdgeWeightData,V extends WeightedVertex & ChildVertex & EdgeWeightVertex<E>> void relax(V u, V v)
u
- v
-