VocabularygraphvizInputsOutputsWord descriptionAdds a
node to
graph for each element in
nodes, which must be a
sequence of objects that are supported by the
present word. Thus, the following two lines are equivalent:
{ X Y Z } add-nodes
X add-node Y add-node Z add-node
ExamplesUSING: accessors graphviz prettyprint sequences ;
<graph>
{ 8 6 7 5 3 0 9 "Jenny" "Jenny" } add-nodes
statements>> length .
9
USING: accessors graphviz kernel math prettyprint sequences ;
<graph>
100 [ "spam" ] replicate add-nodes
statements>> [ id>> "spam" = ] all? .
t
See alsoadd,
add-node,
add-pathDefinition