Refactor: Rename adjMatrix to adjList
This commit is contained in:
@@ -32,10 +32,10 @@ private:
|
||||
template<typename T>
|
||||
void SCC<T>::normalize() {
|
||||
for (const auto& u : this->vertices()) {
|
||||
for (const auto& v : this->adjMatrix[u]) {
|
||||
if (!this->adjMatrix.count(v)) {
|
||||
this->adjMatrix[u].erase(v);
|
||||
this->adjMatrix.erase(v);
|
||||
for (const auto& v : this->adjList[u]) {
|
||||
if (!this->adjList.count(v)) {
|
||||
this->adjList[u].erase(v);
|
||||
this->adjList.erase(v);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user