graph_analysis
Percolation.hpp
Go to the documentation of this file.
1 #ifndef GRAPH_ANALYSIS_PERCOLATION_HPP
2 #define GRAPH_ANALYSIS_PERCOLATION_HPP
3 
10 #include "BaseGraph.hpp"
11 #include "SubGraph.hpp"
12 #include "percolation/Strategy.hpp"
13 
14 namespace graph_analysis {
15 namespace percolation {
16 
18 {
19  BaseGraph::Ptr mpGraph;
20  SubGraph::Ptr mpSubGraph;
21 
22 public:
24 
25  virtual ~Percolation() {}
26 
30  void reset();
31 
36  EventList apply(Strategy::Ptr strategy);
37 
42  SubGraph::Ptr getSubGraph() { return mpSubGraph; }
43 };
44 
45 } // end namespace percolation
46 } // end namespace graph_analysis
47 #endif // GRAPH_ANALYSIS_PERCOLATION_HPP
virtual ~Percolation()
Definition: Percolation.hpp:25
Main namespace of the graph analysis library.
Definition: BFS.cpp:3
Definition: Percolation.hpp:17
shared_ptr< Strategy > Ptr
Definition: Strategy.hpp:14
Percolation deals with a changing graph, i.e., nodes and edges that disappear from the graph...
void reset()
Definition: Percolation.cpp:11
EventList apply(Strategy::Ptr strategy)
Definition: Percolation.cpp:17
Percolation(BaseGraph::Ptr graph)
Definition: Percolation.cpp:6
shared_ptr< SubGraph > Ptr
Definition: SubGraph.hpp:52
std::vector< Event > EventList
Definition: Event.hpp:23
shared_ptr< BaseGraph > Ptr
Definition: BaseGraph.hpp:34
SubGraph::Ptr getSubGraph()
Definition: Percolation.hpp:42