Tarjan
-
template<class G>
class Tarjan Public Functions
-
inline int sccCount() const
Returns the number of strongly connected components of the graph.
-
inline const std::vector<std::vector<int>> &sccs() const
Returns a vector containing the strongly connected components of the graph.
-
inline int scc(const int v) const
Returns the ID of the strongly connected component containing a given vertex.
Private Functions
-
inline int sccCount() const