Refactor: Change reachability interfaces to handle multiple removals/insertions

This commit is contained in:
stefiosif
2022-10-15 10:40:08 +03:00
parent 04ab33888e
commit e7fd88f82c
8 changed files with 41 additions and 37 deletions

View File

@@ -18,7 +18,7 @@ public:
virtual bool query(const T& u, const T& v) =0;
// Remove edge e(u,v) and maintain the transitive closure matrix
virtual void remove(const T& u, const T& v) =0;
virtual void remove(const std::vector<std::pair<T, T>>& edges) =0;
protected:
Digraph<T> G;
};