Drag-and-dropping a node from the palette to the main diagram will look for the nearest node to the drop point. If it finds one within a certain distance, it creates a new link from that node to the newly dropped node. See also
LinkingDragging.html
Load
Save
{ "class": "go.GraphLinksModel", "nodeDataArray": [ {"key":1, "text":"hello", "color":"green", "location":"0 0"}, {"key":2, "text":"world", "color":"red", "location":"70 0"} ], "linkDataArray": [ {"from":1, "to":2} ]}