Add decremental maintenance of SCCs frame
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user