graph_analysis
Strategy.hpp
Go to the documentation of this file.
1 #ifndef GRAPH_ANALYSIS_PERCOLATION_STRATEGY_HPP
2 #define GRAPH_ANALYSIS_PERCOLATION_STRATEGY_HPP
3 
4 #include "../SharedPtr.hpp"
5 #include "../SubGraph.hpp"
6 #include "Event.hpp"
7 
8 namespace graph_analysis {
9 namespace percolation {
10 
11 class Strategy
12 {
13 public:
14  typedef shared_ptr<Strategy> Ptr;
15 
16  virtual ~Strategy() {}
17 
22  virtual EventList apply(SubGraph::Ptr subgraph) { throw std::runtime_error("graph_analysis::percolation::Strategy::apply has not been implemented"); }
23 };
24 
25 } // end namespace percolation
26 } // end namespace graph_analysis
27 #endif // GRAPH_ANALYSIS_PERCOLATION_STRATEGY_HPP
virtual EventList apply(SubGraph::Ptr subgraph)
Definition: Strategy.hpp:22
Main namespace of the graph analysis library.
Definition: BFS.cpp:3
Definition: Strategy.hpp:11
shared_ptr< Strategy > Ptr
Definition: Strategy.hpp:14
Percolation deals with a changing graph, i.e., nodes and edges that disappear from the graph...
shared_ptr< SubGraph > Ptr
Definition: SubGraph.hpp:52
std::vector< Event > EventList
Definition: Event.hpp:23
virtual ~Strategy()
Definition: Strategy.hpp:16