| CPC G06T 17/20 (2013.01) [G06T 7/50 (2017.01)] | 20 Claims |

|
1. A method for deriving a graph grammar consisting of production rules, the method comprising:
identifying an example shape;
splitting the example shape into primitives, each primitive encompassing a vertex of the example shape;
creating a graph hierarchy of graphs, the graphs including:
the primitives,
graphs that are formed by attaching the primitives together, and
graphs that are formed by attaching the primitives to other non-primitive graphs;
for each of one or more graphs in the graph hierarchy, finding a matching set of graphs in the graph hierarchy; and
for each matching set of graphs in the graph hierarchy, defining a production rule of the graph grammar based on the matching set.
|