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

I am testing on sample:

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 GoJS User Permissions -- Northwoods Software

Thank you!

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

did the job.