|
@@ -7,6 +7,12 @@
|
|
|
|
|
|
cmComputeComponentGraph::cmComputeComponentGraph(Graph const& input)
|
|
|
: InputGraph(input)
|
|
|
+{
|
|
|
+}
|
|
|
+
|
|
|
+cmComputeComponentGraph::~cmComputeComponentGraph() = default;
|
|
|
+
|
|
|
+void cmComputeComponentGraph::Compute()
|
|
|
{
|
|
|
// Identify components.
|
|
|
this->Tarjan();
|
|
@@ -17,8 +23,6 @@ cmComputeComponentGraph::cmComputeComponentGraph(Graph const& input)
|
|
|
this->TransferEdges();
|
|
|
}
|
|
|
|
|
|
-cmComputeComponentGraph::~cmComputeComponentGraph() = default;
|
|
|
-
|
|
|
void cmComputeComponentGraph::Tarjan()
|
|
|
{
|
|
|
int n = static_cast<int>(this->InputGraph.size());
|