Generated on Wed Apr 29 2015 11:51:40 for GGL-4.1.2 by doxygen 1.8.3.1
Match_Reporter.hh
Go to the documentation of this file.
1 #ifndef SGM_MATCH_REPORTER_HH_
2 #define SGM_MATCH_REPORTER_HH_
3 
4 #include "sgm/Match.hh"
5 #include "sgm/Graph_Interface.hh"
6 #include "sgm/Pattern.hh"
7 
8 namespace sgm {
9 
10  /*! @brief Interface graph match reporting
11  *
12  * An interface description of the class used by sgm::SubGraphMatching objects
13  * to report a match of the pattern in the target graph.
14  *
15  * @author Martin Mann (c) 2008 http://www.bioinf.uni-freiburg.de/~mmann/
16  */
18 
19  public:
20 
21  virtual
23  {}
24 
25  //! Reports a match. The match is encoded using a vector. The length
26  //! of the vector corresponds to the number of vertices in the pattern
27  //! and position i encodes the matched position of pattern node i in
28  //! the target graph.
29  //! @param pattern the pattern graph that was searched for
30  //! @param target the graph the pattern was found within
31  //! @param match contains the indices of the matched pattern nodes in
32  //! the target graph. match[i] corresponds to the mapping of the ith
33  //! vertex in the pattern graph.
34  virtual
35  void
36  reportHit ( const Pattern_Interface & pattern,
37  const Graph_Interface & target,
38  const Match & match ) = 0;
39 
40  };
41 
42 } // namespace sgm
43 
44 
45 #endif /*MATCH_REPORTER_HH_*/