Add single vertex contains method and replace vertices field with adjMatrix' keys
This commit is contained in:
@@ -49,8 +49,8 @@ void DecrementalSCC<T>::findSCC() {
|
||||
for (auto& C : SCCs) {
|
||||
const auto& w = C.representative();
|
||||
|
||||
for (const auto& v : C.vertices)
|
||||
A[v] = w;
|
||||
for (const auto& v : C.adjMatrix)
|
||||
A[v.first] = w;
|
||||
|
||||
outTree[w] =
|
||||
BreadthFirstTree<T>(BreadthFirstSearch<T>(C).execute(w));
|
||||
|
||||
Reference in New Issue
Block a user