[add-node ( id -- node )
Graphviz notation ยป Aliases that resemble DOT code

Prev:~-> ( graph nodes -- graph' )
Next:[add-edge ( tail head -- edge )


Vocabulary
graphviz.notation

Inputs
idan object


Outputs
nodea node


Word description
Shorthand for <node> to be used with ]; and attribute-setting generic words (see Notation for setting Graphviz attributes) so that setting a node's attributes reads more like the equivalent in the DOT language.

Examples
Instead of writing
<graph> "foo" <node> "red" =color add

it looks better to write
<graph> "foo" [add-node "red" =color ];

Compare this with the DOT language, where you'd write
graph { foo [ color="red" ]; }


See also
[add-edge, [--, [->, [node, [edge, [graph, ];

Definition