node

fun node(nodeName: String, block: (DotWriter.AttributeWriter) -> Unit?)

Emit a node with attributes.

Parameters

nodeName

The identifier of the node.

block

The lambda to apply to generate the node's attributes.

Throws

If emission fails.