Symmetry breaking among matches. More...
#include <MR_SymmBreak.hh>
Public Member Functions | |
MR_SymmBreak (const Pattern_Automorphism &symmCheck, Match_Reporter &forward) | |
MR_SymmBreak (const MR_SymmBreak &toCopy) | |
MR_SymmBreak & | operator= (const MR_SymmBreak &toCopy) |
virtual void | reportHit (const Pattern_Interface &pattern, const Graph_Interface &target, const Match &match) |
virtual | ~MR_SymmBreak () |
Destruction. More... | |
Protected Attributes | |
Match_Reporter * | forward |
the reporter to forward all non-symmetric matches to More... | |
const Pattern_Automorphism * | symmCheck |
the Pattern_Automorphism used to check for symmetries More... | |
An sgm::Match_Reporter implementation that wraps another Match_Reporter and utilizes an sgm::Pattern_Automorphism to determine if a reported match is a symmetric solution or not. If not the match is forwarded to the provided second reporter.
Definition at line 19 of file MR_SymmBreak.hh.
|
inline |
Construction
symmCheck | the automorphism checker to apply to the pattern and match reported. |
forward | the reporter to forward all non-symmetric matches to |
Definition at line 76 of file MR_SymmBreak.hh.
|
inline |
Copy construction
toCopy | the object to make this a copy of |
Definition at line 84 of file MR_SymmBreak.hh.
|
inlinevirtual |
Definition at line 91 of file MR_SymmBreak.hh.
|
inline |
Definition at line 100 of file MR_SymmBreak.hh.
|
inlinevirtual |
Checks if the match is symmetric and if not forwards the match to the other provided reporter.
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. |
Implements sgm::Match_Reporter.
Definition at line 115 of file MR_SymmBreak.hh.
|
protected |
Definition at line 26 of file MR_SymmBreak.hh.
|
protected |
Definition at line 24 of file MR_SymmBreak.hh.