graph_analysis
src
percolation
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
:
13
enum
Type
{
ADD_VERTEX
,
REMOVE_VERTEX
,
ADD_EDGE
,
REMOVE_EDGE
};
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
graph_analysis::percolation::Event
Definition:
Event.hpp:10
graph_analysis::percolation::Event::Event
Event(Type type, GraphElement::Ptr element)
Definition:
Event.cpp:6
graph_analysis::percolation::Event::ADD_VERTEX
@ ADD_VERTEX
Definition:
Event.hpp:13
graph_analysis::percolation::EventList
std::vector< Event > EventList
Definition:
Event.hpp:23
graph_analysis
Main namespace of the graph analysis library.
Definition:
BFS.cpp:3
percolation
Percolation deals with a changing graph, i.e., nodes and edges that disappear from the graph.
graph_analysis::percolation::Event::REMOVE_EDGE
@ REMOVE_EDGE
Definition:
Event.hpp:13
graph_analysis::GraphElement::Ptr
shared_ptr< GraphElement > Ptr
Definition:
GraphElement.hpp:46
graph_analysis::percolation::Event::REMOVE_VERTEX
@ REMOVE_VERTEX
Definition:
Event.hpp:13
graph_analysis::percolation::Event::Type
Type
Definition:
Event.hpp:13
graph_analysis::percolation::Event::ADD_EDGE
@ ADD_EDGE
Definition:
Event.hpp:13
Generated by
1.8.17