Skip to main content
Erschienen in: Acta Informatica 6/2015

01.09.2015 | Original Article

Contextual hyperedge replacement

verfasst von: Frank Drewes, Berthold Hoffmann

Erschienen in: Acta Informatica | Ausgabe 6/2015

Einloggen

Aktivieren Sie unsere intelligente Suche, um passende Fachinhalte oder Patente zu finden.

search-config
loading …

Abstract

Contextual hyperedge-replacement grammars (contextual grammars, for short) are an extension of hyperedge replacement grammars. They have recently been proposed as a grammatical method for capturing the structure of object-oriented programs, thus serving as an alternative to the use of meta-models like uml class diagrams in model-driven software design. In this paper, we study the properties of contextual grammars. Even though these grammars are not context-free, one can show that they inherit several of the nice properties of hyperedge replacement grammars. In particular, they possess useful normal forms and their membership problem is in NP.

Sie haben noch keine Lizenz? Dann Informieren Sie sich jetzt über unsere Produkte:

Springer Professional "Wirtschaft+Technik"

Online-Abonnement

Mit Springer Professional "Wirtschaft+Technik" erhalten Sie Zugriff auf:

  • über 102.000 Bücher
  • über 537 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Maschinenbau + Werkstoffe
  • Versicherung + Risiko

Jetzt Wissensvorsprung sichern!

Springer Professional "Wirtschaft"

Online-Abonnement

Mit Springer Professional "Wirtschaft" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 340 Zeitschriften

aus folgenden Fachgebieten:

  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Finance + Banking
  • Management + Führung
  • Marketing + Vertrieb
  • Versicherung + Risiko




Jetzt Wissensvorsprung sichern!

Springer Professional "Technik"

Online-Abonnement

Mit Springer Professional "Technik" erhalten Sie Zugriff auf:

  • über 67.000 Bücher
  • über 390 Zeitschriften

aus folgenden Fachgebieten:

  • Automobil + Motoren
  • Bauwesen + Immobilien
  • Business IT + Informatik
  • Elektrotechnik + Elektronik
  • Energie + Nachhaltigkeit
  • Maschinenbau + Werkstoffe




 

Jetzt Wissensvorsprung sichern!

Fußnoten
1
Recall that \([ sq ]\) denotes the set of symbols that occur in \( sq \).
 
2
We can use \(\dot{\fancyscript{C}}\) in \(S\langle \dot{\fancyscript{C}}, sq \rangle \) rather than having to guess a subset of \(\dot{\fancyscript{C}}\), because we want \(\Gamma '\) to generate \(L\) rather than the whole language \({\fancyscript{L}}(\Gamma )\).
 
3
Recall that, by the remark after Definition 2.3, the requirement \(\dot{Z}=\emptyset \) is no limitation.
 
4
Recall that a wpo is a partial order that is well-founded (there are no infinite descending chains) and has no infinite antichains (every infinite subset contains comparable elements).
 
5
As Dirk Janssens has pointed out in private communication, this is not sure for the relation of CHR and non-confluent edNCE grammars, which do derive the language of all graphs, thanks to their ability to delete terminal edges during derivations. Then the node replacement grammar generating complete graphs can be extended by (non-confluent) rules that delete arbitrary sets of edges.
 
Literatur
1.
Zurück zum Zitat Abadi, M., Cardelli, L.: A Theory of Objects. Monographs in Computer Science. Springer, New York (1996) Abadi, M., Cardelli, L.: A Theory of Objects. Monographs in Computer Science. Springer, New York (1996)
2.
Zurück zum Zitat Bakewell, A., Plump, D., Runciman, C.: Specifying pointer structures by graph reduction. In: Nagl, M., Pfaltz, J., Böhlen, B. (eds.) Applications of Graph Transformation with Industrial Relevance (AGTIVE’03), No. 3062 in Lecture Notes in Computer Science, pp. 30–44. Springer, Berlin (2004) Bakewell, A., Plump, D., Runciman, C.: Specifying pointer structures by graph reduction. In: Nagl, M., Pfaltz, J., Böhlen, B. (eds.) Applications of Graph Transformation with Industrial Relevance (AGTIVE’03), No. 3062 in Lecture Notes in Computer Science, pp. 30–44. Springer, Berlin (2004)
3.
Zurück zum Zitat Blomer, J., Geiß, R.: GrGen.net: A generative system for graph-rewriting, user manual. www.grgen.net (2006–2011) Blomer, J., Geiß, R.: GrGen.net: A generative system for graph-rewriting, user manual. www.​grgen.​net (2006–2011)
4.
Zurück zum Zitat Courcelle, B., Engelfriet, J.: Graph Structure and Monadic Second-Order Logic—A Language-Theoretic Approach, Encyclopedia of Mathematics and Its Applications, vol. 138. Cambridge University Press, Cambridge (2012)CrossRef Courcelle, B., Engelfriet, J.: Graph Structure and Monadic Second-Order Logic—A Language-Theoretic Approach, Encyclopedia of Mathematics and Its Applications, vol. 138. Cambridge University Press, Cambridge (2012)CrossRef
5.
Zurück zum Zitat Drewes, F., Habel, A., Kreowski, H.J.: Hyperedge replacement graph grammars. In: Rozenberg, G. (ed.) Handbook of Graph Grammars and Computing by Graph Transformation Vol. I: Foundations, chap. 2, pp. 95–162. World Scientific, Singapore (1997)CrossRef Drewes, F., Habel, A., Kreowski, H.J.: Hyperedge replacement graph grammars. In: Rozenberg, G. (ed.) Handbook of Graph Grammars and Computing by Graph Transformation Vol. I: Foundations, chap. 2, pp. 95–162. World Scientific, Singapore (1997)CrossRef
6.
Zurück zum Zitat Drewes, F., Hoffmann, B., Janssens, D., Minas, M.: Adaptive star grammars and their languages. Theor. Comput. Sci. 411, 3090–3109 (2010)MATHMathSciNetCrossRef Drewes, F., Hoffmann, B., Janssens, D., Minas, M.: Adaptive star grammars and their languages. Theor. Comput. Sci. 411, 3090–3109 (2010)MATHMathSciNetCrossRef
7.
Zurück zum Zitat Drewes, F., Hoffmann, B., Janssens, D., Minas, M., Van Eetvelde, N.: Adaptive star grammars. In: Corradini, A., Ehrig, H., Montanari, U., Ribeiro, L., Rozenberg, G. (eds.) 3rd International Conference on Graph Transformation (ICGT’06), No. 4178 in Lecture Notes in Computer Science, pp. 77–91. Springer, Berlin (2006) Drewes, F., Hoffmann, B., Janssens, D., Minas, M., Van Eetvelde, N.: Adaptive star grammars. In: Corradini, A., Ehrig, H., Montanari, U., Ribeiro, L., Rozenberg, G. (eds.) 3rd International Conference on Graph Transformation (ICGT’06), No. 4178 in Lecture Notes in Computer Science, pp. 77–91. Springer, Berlin (2006)
8.
Zurück zum Zitat Drewes, F., Hoffmann, B., Janssens, D., Minas, M., Van Eetvelde, N.: Shaped generic graph transformation. In: Schürr, A., Nagl, M., Zündorf, A. (eds.) Applications of Graph Transformation with Industrial Relevance (AGTIVE’07), No. 5088 in Lecture Notes in Computer Science, pp. 201–216. Springer, Berlin (2008) Drewes, F., Hoffmann, B., Janssens, D., Minas, M., Van Eetvelde, N.: Shaped generic graph transformation. In: Schürr, A., Nagl, M., Zündorf, A. (eds.) Applications of Graph Transformation with Industrial Relevance (AGTIVE’07), No. 5088 in Lecture Notes in Computer Science, pp. 201–216. Springer, Berlin (2008)
9.
Zurück zum Zitat Drewes, F., Hoffmann, B., Minas, M.: Context-exploiting shapes for diagram transformation. Mach. Graph. Vis. 12(1), 117–132 (2003) Drewes, F., Hoffmann, B., Minas, M.: Context-exploiting shapes for diagram transformation. Mach. Graph. Vis. 12(1), 117–132 (2003)
10.
Zurück zum Zitat Drewes, F., Hoffmann, B., Minas, M.: Adaptive star grammars for graph models. In: Ehrig, H., Heckel, R., Rozenberg, G., Taentzer, G. (eds.) 4th International Conference on Graph Transformation (ICGT’08), No. 5214 in Lecture Notes in Computer Science, pp. 201–216. Springer, Berlin (2008) Drewes, F., Hoffmann, B., Minas, M.: Adaptive star grammars for graph models. In: Ehrig, H., Heckel, R., Rozenberg, G., Taentzer, G. (eds.) 4th International Conference on Graph Transformation (ICGT’08), No. 5214 in Lecture Notes in Computer Science, pp. 201–216. Springer, Berlin (2008)
11.
Zurück zum Zitat Drewes, F., Hoffmann, B., Minas, M.: Contextual hyperedge replacement. In: Schürr, A., Varró, D., Varró, G. (eds.) Proceedings of Applications of Graph Transformation with Industrial Relevance 2011 (AGTIVE 2011), No. 7233 in Lecture Notes in Computer Science, pp. 182–197. Springer, Berlin (2012) Drewes, F., Hoffmann, B., Minas, M.: Contextual hyperedge replacement. In: Schürr, A., Varró, D., Varró, G. (eds.) Proceedings of Applications of Graph Transformation with Industrial Relevance 2011 (AGTIVE 2011), No. 7233 in Lecture Notes in Computer Science, pp. 182–197. Springer, Berlin (2012)
12.
Zurück zum Zitat Ehrig, H., Ehrig, K., Prange, U., Taentzer, G.: Fundamentals of Algebraic Graph Transformation. Springer, EATCS Monographs on Theoretical Computer Science (2006) Ehrig, H., Ehrig, K., Prange, U., Taentzer, G.: Fundamentals of Algebraic Graph Transformation. Springer, EATCS Monographs on Theoretical Computer Science (2006)
13.
Zurück zum Zitat Engelfriet, J.: Context-free graph grammars. In: Rozenberg, G., Salomaa, A. (eds.) Handbook of Formal Languages, vol. 3: Beyond Words, chap. 3, pp. 125–213. Springer, Berlin (1999) Engelfriet, J.: Context-free graph grammars. In: Rozenberg, G., Salomaa, A. (eds.) Handbook of Formal Languages, vol. 3: Beyond Words, chap. 3, pp. 125–213. Springer, Berlin (1999)
14.
Zurück zum Zitat Habel, A.: Hyperedge Replacement: Grammars and Languages. No. 643 in Lecture Notes in Computer Science. Springer, Berlin (1992) Habel, A.: Hyperedge Replacement: Grammars and Languages. No. 643 in Lecture Notes in Computer Science. Springer, Berlin (1992)
15.
Zurück zum Zitat Habel, A., Radke, H.: Expressiveness of graph conditions with variables. In: Electronic Communications of the EASST 30 (2010). International Colloquium on Graph and Model Transformation (GraMoT’10) Habel, A., Radke, H.: Expressiveness of graph conditions with variables. In: Electronic Communications of the EASST 30 (2010). International Colloquium on Graph and Model Transformation (GraMoT’10)
16.
Zurück zum Zitat Harary, F.: Graph Theory. Addison-Wesley, Reading, MA (1969) Harary, F.: Graph Theory. Addison-Wesley, Reading, MA (1969)
17.
Zurück zum Zitat Hoffmann, B.: Shapely hierarchical graph transformation. In: Proceedings of IEEE Symposia on Human-Centric Computing Languages and Environments, pp. 30–37. IEEE Computer Press, Silver Spring, MD (2001) Hoffmann, B.: Shapely hierarchical graph transformation. In: Proceedings of IEEE Symposia on Human-Centric Computing Languages and Environments, pp. 30–37. IEEE Computer Press, Silver Spring, MD (2001)
18.
Zurück zum Zitat Hoffmann, B.: Conditional adaptive star grammars. Electronic Communications of the EASST 26 (2010) Hoffmann, B.: Conditional adaptive star grammars. Electronic Communications of the EASST 26 (2010)
20.
Zurück zum Zitat Hoffmann, B., Minas, M.: Defining models—meta models versus graph grammars. Elect. Comm. of the EASST 29 (2010). In Proceedings of 6th Workshop on Graph Transformation and Visual Modeling Techniques (GT-VMT’10), Paphos, Cyprus Hoffmann, B., Minas, M.: Defining models—meta models versus graph grammars. Elect. Comm. of the EASST 29 (2010). In Proceedings of 6th Workshop on Graph Transformation and Visual Modeling Techniques (GT-VMT’10), Paphos, Cyprus
21.
Zurück zum Zitat Lange, K.J., Welzl, E.: String grammars with disconnecting or a basic root of the difficulty in graph grammar parsing. Discrete Appl. Math. 16, 17–30 (1987)MATHMathSciNetCrossRef Lange, K.J., Welzl, E.: String grammars with disconnecting or a basic root of the difficulty in graph grammar parsing. Discrete Appl. Math. 16, 17–30 (1987)MATHMathSciNetCrossRef
22.
Zurück zum Zitat Minas, M.: Concepts and realization of a diagram editor generator based on hypergraph transformation. Sci. Comput. Program. 44(2), 157–180 (2002)MATHCrossRef Minas, M.: Concepts and realization of a diagram editor generator based on hypergraph transformation. Sci. Comput. Program. 44(2), 157–180 (2002)MATHCrossRef
24.
Zurück zum Zitat Rumbaugh, J., Jacobson, I., Booch, G.: The Unified Modeling Language Reference Manual. Object Technology Series, 2nd edn. Addison Wesley, Reading, MA (2004) Rumbaugh, J., Jacobson, I., Booch, G.: The Unified Modeling Language Reference Manual. Object Technology Series, 2nd edn. Addison Wesley, Reading, MA (2004)
25.
Zurück zum Zitat Sagiv, M., Reps, T., Wilhelm, R.: Solving shape-analysis problems in languages with destructive updating. ACM Trans. Program. Lang. Syst. 20(1), 1–50 (1998)CrossRef Sagiv, M., Reps, T., Wilhelm, R.: Solving shape-analysis problems in languages with destructive updating. ACM Trans. Program. Lang. Syst. 20(1), 1–50 (1998)CrossRef
26.
Zurück zum Zitat Van Eetvelde, N.: A graph transformation approach to refactoring. Doctoral thesis, Universiteit Antwerpen (2007) Van Eetvelde, N.: A graph transformation approach to refactoring. Doctoral thesis, Universiteit Antwerpen (2007)
Metadaten
Titel
Contextual hyperedge replacement
verfasst von
Frank Drewes
Berthold Hoffmann
Publikationsdatum
01.09.2015
Verlag
Springer Berlin Heidelberg
Erschienen in
Acta Informatica / Ausgabe 6/2015
Print ISSN: 0001-5903
Elektronische ISSN: 1432-0525
DOI
https://doi.org/10.1007/s00236-015-0223-4