scc_id¶
-
inline scc_index_type libsemigroups::ActionDigraph::scc_id(node_type nd) const¶
Returns the id-number of the strongly connected component of a node.
- Complexity
At most \(O(mn)\) where
mis nr_nodes() andnis out_degree().
- Parameters
nd – the node.
- Throws
LibsemigroupsException – if
ndis not valid.- Returns
The index of the node
nd, a value of type scc_index_type.