Towards Graph Programs for Graph Algorithms

Detlef Plump, Sandra Steinert

Research output: Chapter in Book/Report/Conference proceedingConference contribution

Abstract

Graph programs as introduced by Habel and Plump [8] provide a simple yet computationally complete language for computing functions and relations on graphs. We extend this language such that numerical computations on labels can be conveniently expressed. Rather than resorting to some kind of attributed graph transformation, we introduce conditional rule schemata which are instantiated to (conditional) double-pushout rules over ordinary graphs. A guiding principle in our language extension is syntactic and semantic simplicity. As a case study for the use of extended graph programs, we present and analyse two versions of Dijkstra's shortest path algorithm. The first program consists of just three rule schemata and is easily proved to be correct but can be exponential in the number of rule applications. The second program is a refinement of the first which is essentially deterministic and uses at most a quadratic number of rule applications.

Original languageEnglish
Title of host publicationProceedings 2nd International Conference on Graph Transformation (ICGT 2004)
EditorsH Ehrig, G Engels, F ParisiPresicce, G Rozenberg
Place of PublicationBerlin
PublisherSpringer
Pages128-143
Number of pages16
ISBN (Print)3-540-23207-9
DOIs
Publication statusPublished - 2004
Event2nd International Conference on Graph Transformations - Rome
Duration: 28 Sept 20042 Oct 2004

Publication series

NameLecture Notes in Computer Science
PublisherSpringer-Verlag
Volume3256

Conference

Conference2nd International Conference on Graph Transformations
CityRome
Period28/09/042/10/04

Keywords

  • TRANSFORMATION

Cite this