graph method
A complete graph
.
Implementation
Parser<Graph> graph() => (ref0(strictToken).optional() &
(ref0(graphToken) | ref0(digraphToken)) &
ref0(id).optional() &
ref1(token, '{') &
ref0(stmtList) &
ref1(token, '}'))
.map((result) => Graph(
strict: result[0] != null,
type: GraphType.fromValue((result[1] as Token<String>).value),
id: result[2],
stmtList: result[4],
));