java.lang.Object
tools.refinery.interpreter.rete.itc.alg.misc.scc.SCC<V>
Type Parameters:
V - the type parameter of the nodes in the graph

public class SCC<V> extends Object
Efficient algorithms to compute the Strongly Connected Components in a directed graph.
  • Field Details

    • sccId

      public static long sccId
  • Method Details

    • computeSCC

      public static <V> SCCResult<V> computeSCC(IGraphDataSource<V> g)
      Computes the SCCs for the given graph and returns them as a multiset. (Iterative version of Tarjan's algorithm)
      Parameters:
      g - the directed graph data source
      Returns:
      the set of SCCs