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.

Standard Example

Styled Example