pub(crate) fn sccs( g: &BTreeMap<UnitId, Vec<UnitId>>, ) -> (Vec<Vec<UnitId>>, BTreeMap<UnitId, usize>)
Tarjan’s algorithm. Returns the components and each node’s component index.