Package jenkins.util
Class DirectedGraph<N>
java.lang.Object
jenkins.util.DirectedGraph<N>
A possible cyclic directed graph.
This class defines various algorithms on a directed graph that's not necessarily acyclic.
- Author:
- Kohsuke Kawaguchi
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Strongly connected component (SCC) of a graph. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Collection<N>
Forward traversal of the edges.Performs the Tarjan's algorithm and computes strongly-connected components from the sink to source order.protected abstract Collection<N>
nodes()
All the vertices of the nodes.
-
Constructor Details
-
DirectedGraph
public DirectedGraph()
-
-
Method Details
-
nodes
All the vertices of the nodes. -
forward
Forward traversal of the edges. -
getStronglyConnectedComponents
Performs the Tarjan's algorithm and computes strongly-connected components from the sink to source order. See the Wikipedia page.
-