Documentation

Mathlib.Tactic.Order.Graph.Tarjan

Tarjan's Algorithm #

This file implements Tarjan's algorithm for finding the strongly connected components (SCCs) of a graph.

State for Tarjan's algorithm.

Instances For

    Finds the strongly connected components of the graph g. Returns a hashmap where the value at key v represents the SCC number containing vertex v. The numbering of SCCs is arbitrary.

    Equations
      Instances For