Graph Writer
A GraphWriter provides the capability of writing entire graphs, and as such is able to emit default attribute blocks, nodes, and edges.
Author
Todd L Smith
Functions
Answer an adjusted rhs (right hand side), taking into account which format the rhs takes, and whether dark mode is active.
Answer an adjusted rhs (right hand side), taking into account which format the rhs takes, and whether dark mode is active. This method takes a boolean, which if true processes the second argument, otherwise the third.
Emit a block comment. A best effort will be made to keep the lines of the block comment within the specified limit, accounting for indentation and comment overhead.
Emit an appropriately indented default attribute block.
Emit an edge.
Emit an edge with attributes.
Emit an end-of-line comment.
Emit interleaved nodes and edges. If no nodes are specified, then do nothing.
Emit a node with attributes.
Write an appropriately indented anonymous subgraph block.
Write an appropriately indented named subgraph block.