graph_analysis
Event.hpp
Go to the documentation of this file.
1 #ifndef GRAPH_ANALYSIS_PERCOLATION_EVENT_HPP
2 #define GRAPH_ANALYSIS_PERCOLATION_EVENT_HPP
3 
4 #include <vector>
5 #include "../GraphElement.hpp"
6 
7 namespace graph_analysis {
8 namespace percolation {
9 
10 class Event
11 {
12 public:
14 
15  Event(Type type, GraphElement::Ptr element);
16 
17 private:
19  Type mType;
20  GraphElement::Ptr mElement;
21 };
22 
23 typedef std::vector<Event> EventList;
24 
25 } // end namespace percolation
26 } // end namespace graph_analysis
27 #endif // GRAPH_ANALYSIS_PERCOLATION_EVENT_HPP
Definition: Event.hpp:10
Main namespace of the graph analysis library.
Definition: BFS.cpp:3
shared_ptr< GraphElement > Ptr
Definition: GraphElement.hpp:46
Percolation deals with a changing graph, i.e., nodes and edges that disappear from the graph...
std::vector< Event > EventList
Definition: Event.hpp:23
Event(Type type, GraphElement::Ptr element)
Definition: Event.cpp:6
Type
Definition: Event.hpp:13