-
Views
-
Cite
Cite
Yufeng Liu, Xiaoqin Zeng, Kang Zhang, Yang Zou, Coordinate Graph Grammar for the Specification of Spatial Graphs, The Computer Journal, Volume 64, Issue 5, May 2021, Pages 749–761, https://doi.org/10.1093/comjnl/bxaa019
- Share Icon Share
Abstract
As a two-dimensional formal method, graph grammar is widely used in defining various visual programming languages. This paper presents a new graph grammar formalism called coordinate graph grammar (CGG). CGG is extended from the edge-based graph grammar (EGG) by introducing the spatial mechanism into the theoretical framework, which consists of continuous coordinate graph grammar (cCGG) and discrete coordinate graph grammar (dCGG). By combining quantitative and qualitative spatial semantics in one framework, CGG provides strong expressiveness and flexibility for specifying various spatial graphs. This paper focuses on several important issues on the new formalism. First, the theoretical framework of CGG is given. Second, two matching algorithms for cCGG and dCGG are proposed, which use the spatial relationships between nodes to narrow down the search space during parsing. Finally, an application of CGG is demonstrated, which generates parsable flowcharts in a uniform layout.