User Tools

Site Tools


01_user_documentation:07_rgg_xl:02_xl:08_object:02_pattern:01_inrgg

This is an old revision of the document!


In RGG

Custom patterns can be created in RGG with the simple syntax:

class patternName(@In Node a, @Out Node b) (
    // some patterns
    )

Declaring In/Out

Custom patterns requires to declare variable with both annotations @In and @Out. It can be two different variables, or the same one. e.g.

class patternName(@In @Out Node a) ( )

The custom pattern

- context - in and out - open ends - custom nodes - combining - node pattern / edge pattern.

Examples

// declaration
class xyzPath(@In Node a, @Out Node b) (
    a -x-> -y-> -z-> b
    )
 
//usage
void rule() [ Node -xyzPath-> Node ==>; ]
01_user_documentation/07_rgg_xl/02_xl/08_object/02_pattern/01_inrgg.1756830914.txt.gz · Last modified: 2025/09/02 18:35 by gaetan