graph_analysis
Delta.hpp
Go to the documentation of this file.
1 #ifndef GRAPH_ANALYSIS_ALGORITHMS_DELTA_HPP
2 #define GRAPH_ANALYSIS_ALGORITHMS_DELTA_HPP
3 
4 #include "../BaseGraph.hpp"
5 
6 namespace graph_analysis {
7 namespace algorithms {
8 
19 class Delta
20 {
21 public:
22  Delta(const BaseGraph::Ptr& graph1, const BaseGraph::Ptr& graph2);
23 
28  void run();
29 
41 
47  bool hasNext();
48 
49 private:
50  BaseGraph::Ptr mpSourceGraph;
51  BaseGraph::Ptr mpTargetGraph;
52 
53  std::vector<Vertex::Ptr> mRemoveVertices;
54  std::vector<Vertex::Ptr> mAddVertices;
55  std::vector<Edge::Ptr> mRemoveEdges;
56  std::vector<Edge::Ptr> mAddEdges;
57 };
58 
59 } // end namespace algorithms
60 } // end namespace graph_analysis
61 #endif // GRAPH_ANALYSIS_ALGORITHMS_DELTA_HPP
graph_analysis::algorithms::Delta::hasNext
bool hasNext()
Definition: Delta.cpp:84
graph_analysis::algorithms::Delta::getNext
BaseGraph::Ptr getNext()
Definition: Delta.cpp:51
graph_analysis::algorithms::Delta::Delta
Delta(const BaseGraph::Ptr &graph1, const BaseGraph::Ptr &graph2)
Definition: Delta.cpp:6
graph_analysis
Main namespace of the graph analysis library.
Definition: BFS.cpp:3
graph_analysis::BaseGraph::Ptr
shared_ptr< BaseGraph > Ptr
Definition: BaseGraph.hpp:34
graph_analysis::algorithms::Delta::run
void run()
Definition: Delta.cpp:10
graph_analysis::algorithms::Delta
Computes differences between two graphs.
Definition: Delta.hpp:19