More on Graph Rewriting With Contextual Refinement

In grgen, a graph rewrite generator tool, rules have the outstanding feature that variables in their pattern and replacement graphs may be refined with meta-rules based on contextual hyperedge replacement grammars. A refined rule may delete, copy, and transform subgraphs of unbounded size and of variable shape. In this paper, we show that rules with contextual refinement can be transformed to standard graph rewrite rules that perform the refinement incrementally, and are applied according to a strategy called residual rewriting. With this transformation, it is possible to state precisely whether refinements can be determined in finitely many steps or not, and whether refinements are unique for every form of refined pattern or not.

[1]  Annegret Habel,et al.  Expressiveness of graph conditions with variables , 2010, Electron. Commun. Eur. Assoc. Softw. Sci. Technol..

[2]  Berthold Hoffmann,et al.  Graph Rewriting with Contextual Refinement , 2013, Electron. Commun. Eur. Assoc. Softw. Sci. Technol..

[3]  Martin Fowler,et al.  Refactoring - Improving the Design of Existing Code , 1999, Addison Wesley object technology series.

[4]  Hartmut Ehrig,et al.  Graph-Grammars: An Algebraic Approach , 1973, SWAT.

[5]  Hartmut Ehrig,et al.  M-Adhesive Transformation Systems with Nested Application Conditions. Part 2 , 2012 .

[6]  Annegret Habel,et al.  Double-pushout graph transformation revisited , 2001, Mathematical Structures in Computer Science.

[7]  Hartmut Ehrig,et al.  Cospan DPO Approach: An Alternative for DPO Graph Transformations , 2009, Bull. EATCS.

[8]  Berthold Hoffmann,et al.  Contextual Hyperedge Replacement , 2011, AGTIVE.

[9]  Dirk Janssens,et al.  A Hierarchical Program Representation for Refactoring , 2003, Electron. Notes Theor. Comput. Sci..

[10]  Detlef Plump,et al.  Hypergraph rewriting: critical pairs and undecidability of confluence , 1993 .

[11]  Hartmut Ehrig,et al.  Local Confluence for Rules with Nested Application Conditions , 2010, ICGT.

[12]  Arend Rensink The GROOVE Simulator: A Tool for State Space Generation , 2003, AGTIVE.

[13]  Berthold Hoffmann,et al.  Shaped Generic Graph Transformation , 2007, AGTIVE.

[14]  Annegret Habel,et al.  Hyperedge Replacement: Grammars and Languages , 1992, Lecture Notes in Computer Science.

[15]  Hartmut Ehrig,et al.  Fundamentals of Algebraic Graph Transformation , 2006, Monographs in Theoretical Computer Science. An EATCS Series.

[16]  Berthold Hoffmann,et al.  Graph Rewrite Rules with Structural Recursion , 2008 .

[17]  Hartmut Ehrig,et al.  ℳ-Adhesive Transformation Systems with Nested Application Conditions. Part 2: Embedding, Critical Pairs and Local Confluence , 2012, Fundam. Informaticae.

[18]  Gabriele Taentzer,et al.  The AGG approach: language and environment , 1999 .