This is something I created over a year ago and I’ve decided to share the code in case someone finds it useful.
- Click a node and drag
- Double-click to generate a node
- Click a node, hold down shift, then release over another node to connect
Demo (Should be supported by most modern browsers)