e, new go.DraggingInfo(node.location));
      // now recursively collect all connected Nodes and the Links to them
      node.findLinksConnected().each((link) => {
        if (link.category !== '') return; // ignore comment links
        map.add(link, new go.DraggingInfo());
        this.gatherConnecteds(map, link.getOtherNode(node));
      });
    }
  }
  // end SnappingTool class

  function save() {
    document.getElementById('mySavedModel').value = myDiagram.model.toJson();
    myDiagram.isModified = f