Nodes
allNodes [figure=Square]
a
b
c [color=red]
Type something and hit return to make a node. The special brackets [] will be ignored and used for styling.
Options are: stroke, strokeWidth, figure, fill, width, height, margin, angle, and scale
See Shapes
Lines
a -> a
a -> b
The "->" is the important part. Everything left of it will be considered the "from" node, everything right is the "to" node.
Styles
a [color=pink,loc=0 0]
a->b [routing=go.Link.Normal]
See full link options
Saving
Save your text in a safe place so you can easily re-create your graph.
Sharable Link
Download SVG
Standard Example
a b c a->b a->a
Styled Example
allNodes [strokeWidth=1, fill=white,figure=RoundedRectangle] allLinks [strokeWidth=2, stroke=gray] a [fill=red] b c d e [fill=cyan,strokeWidth=2,stroke=blue,figure=square] f [figure=Ellipse] a->f a->e e->f a->b a->c a->d d->b a->f e->b