Refactor: Remove unused method setGraph
This commit is contained in:
@@ -18,11 +18,11 @@ public:
|
||||
|
||||
Tarjan(std::map<T, std::set<T>> adjMatrix) : adjMatrix(adjMatrix) {}
|
||||
|
||||
//
|
||||
auto execute();
|
||||
|
||||
//
|
||||
void strongConnect(const T& u);
|
||||
|
||||
void setGraph(std::map<T, std::set<T>> adjMatrix);
|
||||
private:
|
||||
std::map<T, std::set<T>> adjMatrix;
|
||||
std::stack<T> S;
|
||||
@@ -80,11 +80,6 @@ auto Tarjan<T>::execute() {
|
||||
return SCCs;
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
void Tarjan<T>::setGraph(std::map<T, std::set<T>> adjMatrix) {
|
||||
this->adjMatrix = adjMatrix;
|
||||
}
|
||||
|
||||
} // namespace algo
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user