Editable graph, allow moving object, not allowing adding new ones

I am testing on sample:
http://gojs.net/latest/samples/stateChart.html

I need to have option to move nodes, that is ok,
but sometimes if you are not careful, new elements (links) are added
(i guess it depends where you click on the node).

Can i disable adding new elements to graph, but still have it in edit mode for moving nodes?

Sure, just set Diagram.allowLink to false. For example:

  $(go.Diagram, "myDiagramDiv",
    {
        allowLink: false,
        . . .
    })

Or more generally you might want to set Model.isReadOnly to true. I’m not sure what you want to disallow.

Read more about user permissions at http://gojs.net/latest/intro/permissions.html

Thank you!

diagram.model.isReadOnly = true; // Disable adding or removing parts

did the job.