Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
AtCoder.Internal.Scc
Description
Implementation of Strongly Connected Components calculation. Use Scc
instead.
Since: 1.0.0
Internal SCC
Constructor
new :: PrimMonad m => Int -> m (SccGraph (PrimState m)) Source #
\(O(n)\) Creates SccGraph
of \(n\) vertices.
Since: 1.0.0
Modifying the graph
addEdge :: PrimMonad m => SccGraph (PrimState m) -> Int -> Int -> m () Source #
\(O(1)\) amortized. Adds an edge to the graph.
Since: 1.0.0