Package de.scravy.bedrock
Class Graphs
java.lang.Object
de.scravy.bedrock.Graphs
public class Graphs extends Object
Graph algorithms.
-
Constructor Summary
Constructors Constructor Description Graphs() -
Method Summary
Modifier and Type Method Description static <V> Seq<Seq<V>>stronglyConnectedComponents(DirectedGraph<V> graph)static <V> Seq<Seq<V>>stronglyConnectedComponents(Seq<Pair<V,V>> edges)static <V> Optional<Seq<V>>topologicalSort(Seq<Pair<V,V>> edges)
-
Constructor Details
-
Graphs
public Graphs()
-
-
Method Details
-
topologicalSort
-
stronglyConnectedComponents
-
stronglyConnectedComponents
@Nonnull public static <V> Seq<Seq<V>> stronglyConnectedComponents(@Nonnull DirectedGraph<V> graph)
-