I am using the Automatic graph layout from here https://github.com/microsoft/automatic-graph-layout, specificaly the "Editing" example. I copied only the code from