Graph Grammar Rule application for each reported match.
More...
#include <MR_ApplyRule.hh>
A sgm::Match_Reporter implementation that applies a graph grammar ggl::Rule
to a graph and generates the resulting graph. The new graph is added
to a specified container for further handling like storage or output.
The pattern graph has to be an instance of ggl::LeftSidePattern.
- Author
- Martin Mann (c) 2008 http://www.bioinf.uni-freiburg.de/~mmann/
Definition at line 27 of file MR_ApplyRule.hh.
ggl::MR_ApplyRule::MR_ApplyRule |
( |
Graph_Storage & |
storage, |
|
|
const bool |
addEachComponent = false |
|
) |
| |
Construction of a MR_ApplyRule object that adds the resulting graphs to the given Graph_Storage object.
- Parameters
-
storage | the Graph_Storage object to add the results to |
addEachComponent | if set to true, than all components of the Rules LeftSidePattern are matched to an own target graph copy if two components map to the same target graph. NOTE: only important for rules with multi-component LeftSidePattern! |
virtual ggl::MR_ApplyRule::~MR_ApplyRule |
( |
| ) |
|
|
virtual |
Applies the Rule represented by the pattern onto the matched subgraph of target and adds the resulting graph to the internal Graph_Storage object. NOTE: It is assumed that pattern is an instance of ggl::LeftSidePattern!
- Parameters
-
pattern | the pattern graph that was searched for |
target | the graph the pattern was found within |
match | contains the indices of the matched pattern nodes in the target graph. match[i] corresponds to the mapping of the i-th vertex in the pattern graph. |
Implements sgm::Match_Reporter.
const bool ggl::MR_ApplyRule::addEachComponent |
|
protected |
if set to true, than all components of the Rules LeftSidePattern are matched to an own target graph copy if two components map to the same target graph.
Definition at line 43 of file MR_ApplyRule.hh.
the storage to that "reportHit(..)" adds the resulting graphs after the application of a rule to a matched target graph.
Definition at line 33 of file MR_ApplyRule.hh.
const bool ggl::MR_ApplyRule::undirectedRule |
|
protected |
The documentation for this class was generated from the following file: