Add decremental maintenance of SCCs frame

This commit is contained in:
stefiosif
2022-05-17 21:25:47 +03:00
parent c2c278784b
commit 89a2a24f50
3 changed files with 74 additions and 0 deletions

View File

@@ -20,6 +20,9 @@ public:
// Add edge between v and u
void insert(const T& v, const T& u);
// Reverse graph directions
Graph<T> reverse();
// Adjacency matrix representation
std::set<T> vertices;
std::map<T, std::set<T>> adjMatrix;
@@ -37,6 +40,11 @@ void Graph<T>::insert(const T& v, const T& u) {
adjMatrix[v].insert(u);
}
template<typename T>
Graph<T> Graph<T>::reverse() {
return Graph<T>();
}
} // namespace graph
#endif