↰ Return to documentation for file (include/networkit/base/DynAlgorithm.hpp
)
#ifndef NETWORKIT_BASE_DYN_ALGORITHM_HPP_
#define NETWORKIT_BASE_DYN_ALGORITHM_HPP_
#include <span>
#include <networkit/dynamics/GraphEvent.hpp>
namespace NetworKit {
class DynAlgorithm {
public:
virtual ~DynAlgorithm() = default;
virtual void update(GraphEvent e) = 0;
virtual void updateBatch(std::span<const GraphEvent> batch) = 0;
};
} // namespace NetworKit
#endif // NETWORKIT_BASE_DYN_ALGORITHM_HPP_