|
|
@ -18,8 +18,10 @@
|
|
|
|
#include <gtest/gtest_prod.h>
|
|
|
|
#include <gtest/gtest_prod.h>
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include <map>
|
|
|
|
#include <memory>
|
|
|
|
#include <memory>
|
|
|
|
#include <numeric>
|
|
|
|
#include <numeric>
|
|
|
|
|
|
|
|
#include <set>
|
|
|
|
#include <string>
|
|
|
|
#include <string>
|
|
|
|
#include <unordered_map>
|
|
|
|
#include <unordered_map>
|
|
|
|
#include <unordered_set>
|
|
|
|
#include <unordered_set>
|
|
|
@ -296,7 +298,7 @@ class GraphPatternDetector {
|
|
|
|
using hit_rcd_t =
|
|
|
|
using hit_rcd_t =
|
|
|
|
std::pair<Node* /*node in graph*/, PDNode* /*node in pattern*/>;
|
|
|
|
std::pair<Node* /*node in graph*/, PDNode* /*node in pattern*/>;
|
|
|
|
PDPattern pattern_;
|
|
|
|
PDPattern pattern_;
|
|
|
|
std::unordered_map<const PDNode*, std::unordered_set<Node*>> pdnodes2nodes_;
|
|
|
|
std::map<const PDNode*, std::set<Node*>> pdnodes2nodes_;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// some helper methods.
|
|
|
|
// some helper methods.
|
|
|
|