6.3.11 Iterating over all graphs
Almost always, generators will be run with the context of a
certain graph, and all information they need will be reachable by navigating
from that graph. This is indeed a principle of good modeling language design. On
some rare occasions, it may however be useful to be able to iterate over all
graphs in the currently open projects, for instance when calculating metrics.
The do graphs command will accomplish
this. For instance, the following fragment will list the types and names of all
graphs:
do graphs
{ type ': ' id newline }