Interface graph match reporting. More...
#include <Match_Reporter.hh>
Public Member Functions | |
virtual void | reportHit (const Pattern_Interface &pattern, const Graph_Interface &target, const Match &match)=0 |
virtual | ~Match_Reporter () |
An interface description of the class used by sgm::SubGraphMatching objects to report a match of the pattern in the target graph.
Definition at line 17 of file Match_Reporter.hh.
|
inlinevirtual |
Definition at line 22 of file Match_Reporter.hh.
|
pure virtual |
Reports a match. The match is encoded using a vector. The length of the vector corresponds to the number of vertices in the pattern and position i encodes the matched position of pattern node i in the target graph.
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 ith vertex in the pattern graph. |
Implemented in ggl::chem::MoleculeDecomposition, ggl::chem::MR_Reactions, sgm::MR_StoringInsertT< STL_INSERT_CONTAINER >, ggl::MR_ApplyRule, sgm::MR_SymmBreak, sgm::MR_StoringT< STL_PUSHBACK_CONTAINER >, sgm::MR_stream, and sgm::MR_Counting.