 instanceof go.Node)) return;
          node.findLinksConnected().each((link) => {
            if (link.category !== '') return;
            // see if this link connects with a node that is being dragged
            const othernode = link.getOtherNode(node);
            if (othernode !== null && !coll.has(othernode)) {
              links.add(link); // remember for later deletion
            }
          });
        });
        // outside of nested loops we can actually delete the links
        links.each((l