public class GraphUtil extends Object
| Constructor and Description |
|---|
GraphUtil() |
| Modifier and Type | Method and Description |
|---|---|
static <T> List<T> |
findPath(Map<T,? extends Collection<T>> graph,
T start,
T end)
Find the shortest path from start to end.
|
static <T> Collection<Set<T>> |
stronglyConnectedComponent(Map<T,? extends Collection<T>> graph) |
public static <T> Collection<Set<T>> stronglyConnectedComponent(Map<T,? extends Collection<T>> graph)
public static <T> List<T> findPath(Map<T,? extends Collection<T>> graph, T start, T end)
T - graph - start - end - Copyright © 2002–2017 CoreMedia AG. All rights reserved.