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
graph_analysis::percolation::Strategy::~Strategy
virtual ~Strategy()
Definition: Strategy.hpp:16
graph_analysis::percolation::EventList
std::vector< Event > EventList
Definition: Event.hpp:23
graph_analysis::percolation::Strategy
Definition: Strategy.hpp:11
graph_analysis
Main namespace of the graph analysis library.
Definition: BFS.cpp:3
Event.hpp
percolation
Percolation deals with a changing graph, i.e., nodes and edges that disappear from the graph.
graph_analysis::percolation::Strategy::Ptr
shared_ptr< Strategy > Ptr
Definition: Strategy.hpp:14
graph_analysis::SubGraph::Ptr
shared_ptr< SubGraph > Ptr
Definition: SubGraph.hpp:52
graph_analysis::percolation::Strategy::apply
virtual EventList apply(SubGraph::Ptr subgraph)
Definition: Strategy.hpp:22