|
graph_analysis
|
Computes differences between two graphs. More...
#include <Delta.hpp>
Public Member Functions | |
| Delta (const BaseGraph::Ptr &graph1, const BaseGraph::Ptr &graph2) | |
| void | run () |
| BaseGraph::Ptr | getNext () |
| bool | hasNext () |
Computes differences between two graphs.
A Delta object takes two graphs as arguments and finds the steps to get from the first graph to the second one. Uses removeVertices/addVertices/removeEdges/addEdges vectors to store the vertices/edges that needs to be added/removed from the first graph to get the second one. Need to run the 'run' method before the getNext method.
| graph_analysis::algorithms::Delta::Delta | ( | const BaseGraph::Ptr & | graph1, |
| const BaseGraph::Ptr & | graph2 | ||
| ) |
| BaseGraph::Ptr graph_analysis::algorithms::Delta::getNext | ( | ) |
getNext will execute only one operation when is applied The order of opertations will be:
| bool graph_analysis::algorithms::Delta::hasNext | ( | ) |
check if the source graph has a next if the size of at least one of the vectors is bigger than 0 => true if all sizes are 0 => false
| void graph_analysis::algorithms::Delta::run | ( | ) |
check differences between the given graphs (mpSourceGraph and mpTargetGraph) returns the steps to get from firstGraph to secondGraph into the vectors defined as properties
1.8.17