Overview

A tool class for subgraph matching. It takes a pattern definition and a graph to be matched. It uses the pattern to perform graph matching and provides the MatchNext API to return match results sequentially.

Header File to Be Included

1
#include <ge/fusion/pattern_matcher.h>

Public Member Functions

explicit PatternMatcher(std::unique_ptr<Pattern> pattern, const GraphPtr &target_graph)
[[nodiscard]] std::unique_ptr<MatchResult> MatchNext()