Documentation

StrataDDM.Util.Graph.Tarjan

structure StrataDDM.OutGraph (nodeCount : Nat) :
Instances For
    @[implicit_reducible]
    instance StrataDDM.instReprOutGraph {nodeCount✝ : Nat} :
    Repr (OutGraph nodeCount✝)
    Equations
    def StrataDDM.instReprOutGraph.repr {nodeCount✝ : Nat} :
    OutGraph nodeCount✝NatStd.Format
    Equations
    Instances For
      @[reducible, inline]
      Equations
      Instances For
        def StrataDDM.OutGraph.addEdge {n : Nat} (g : OutGraph n) (f t : Node n) :
        Equations
        Instances For
          def StrataDDM.OutGraph.addEdge! {n : Nat} (g : OutGraph n) (f t : Nat) :
          Equations
          Instances For
            Equations
            Instances For
              def StrataDDM.OutGraph.nodesOut {n : Nat} (g : OutGraph n) (node : Node n) :
              Equations
              Instances For

                This run Tarjan's algorithm to compute strongly connected components.

                Results are ordered so that nodes in the group are in the same element if they are in the same strongly connected component and a node only appears in an array after all the nodes that have paths to it.

                Equations
                • One or more equations did not get rendered due to their size.
                Instances For