Pattern syntax

A Pattern is defined through 3 different parts that are all optional.

The global matching process is as follow:

Note that if there is more than one negative matching, there are all interpreted independently.

One way to learn the syntax of patterns in grew is to follow the tutorial part of the Grew-match tool.

Positive pattern

Negative pattern

Global pattern

Global patterns were introduced in version 1.2 to let the user express constrain about the whole graph. Currently, constraints may be expressed with a fixed list of keywords. We plan to add more constraints in the near future. Please drop us a feature request if you like to suggest one. We describe below 4 of the constraints available in version 1.2. For each one, its negation is available by changing the is_ prefix by the is_not_ prefix.