Use clang-format

This commit is contained in:
stefiosif
2024-08-03 13:14:42 +03:00
parent d216a9611f
commit 3951db7ff9
17 changed files with 262 additions and 287 deletions

View File

@@ -4,21 +4,20 @@
#include "graph/digraph.h"
namespace algo {
template<typename T>
class DecrementalReachability {
template <typename T> class DecrementalReachability {
public:
virtual ~DecrementalReachability() = default;
// This method is implemented and executed by all roditty and zwick
// algorithms, it constructs the data structures used in other operations
virtual void init() =0;
virtual void init() = 0;
// Answer if vertex v is reachable from vertex u
virtual bool query(const T& u, const T& v) =0;
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 std::vector<std::pair<T, T>>& edges) =0;
virtual void remove(const std::vector<std::pair<T, T>> &edges) = 0;
protected:
Digraph<T> G;
};