Refactor: Remove unused method setGraph
This commit is contained in:
@@ -23,8 +23,6 @@ public:
|
||||
|
||||
// Search if target vertex exists in graph
|
||||
bool query(const T& root, const T& target);
|
||||
|
||||
void setGraph(std::map<T, std::set<T>> adjMatrix);
|
||||
private:
|
||||
// Represents the graph on which the algorithm will be executed
|
||||
std::map<T, std::set<T>> adjMatrix;
|
||||
@@ -77,11 +75,6 @@ bool BreadthFirstSearch<T>::query(const T& root, const T& target) {
|
||||
return false;
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
void BreadthFirstSearch<T>::setGraph(std::map<T, std::set<T>> adjMatrix) {
|
||||
this->adjMatrix = adjMatrix;
|
||||
}
|
||||
|
||||
} // namespace algo
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user