More on Graph Rewriting With Contextual Refinement
Berthold Hoffmann, Universität Bremen
Workshop on Graph Computational Models 2014 York, 21. July 2014
1/18
More on Graph Rewriting With Contextual Refinement Berthold - - PowerPoint PPT Presentation
More on Graph Rewriting With Contextual Refinement Berthold Hoffmann, Universitt Bremen Workshop on Graph Computational Models 2014 York, 21. July 2014 1/18 Motivation GRGEN has been the starting point a very efficient graph rewriting
1/18
◮ Attributes ◮ Subtyping (labels, attributes) ◮ Nested application conditions (with recursive
◮ Recursive rule refinement
◮ This provides an enormous “additional value”
◮ We concentrate on rule refinement ◮ We translate refinement into simple rules
2/18
3/18
4/18
4/18
1 ... C k
4/18
5/18
6/18
1 ... C k
1
n
1
n
7/18
1 ... C k
1
n
1
n
7/18
1 ... C k
1
n
1
n
7/18
1 ... C k
1
n
1
n
1
n
1
1
n
1
n
1
1
n
7/18
C B S C C C B B E E E Exp0 Exp1 Exp1 E V E E E Exp1 C B S C C C B B E E E E V E Exp0 Exp1
8/18
9/18
1 ... C k
1 ... C k
10/18
11/18
12/18
C B S C C C B B E E E Exp0 Exp1 Exp1 E V E E E Exp1 C B S C C C B B E E E E V E Exp0 Exp1 C B S C C C B B E E E Exp0 Exp1
E E Exp1
Exp1 E V E E E Exp1 Exp
C B S C C C B B E E E E V E Exp0 Exp1
13/18
◮ if it adds terminal nodes or edges to Bp, or ◮ if Bb does not contain meta-variables
14/18
◮ match, ◮ delete, ◮ replicate, and ◮ transform
◮ residual matches and ◮ priority to meta-rules 15/18
◮ AGG (TU Berlin) ◮ GP2 (York, work in progress) 16/18
◮ Impossible in general! ◮ Possible for graph rewriting preserving unambiguous
17/18
18/18