subgraph

Write an appropriately indented anonymous subgraph block.

Parameters

block

The lambda to apply to emit the content of the subgraph.

Throws

If emission fails.


fun subgraph(subgraphName: String, block: (DotWriter.GraphWriter) -> Unit)

Write an appropriately indented named subgraph block.

Parameters

subgraphName

The name of the subgraph.

block

The lambda to apply to emit the content of the subgraph.

Throws

If emission fails.