Is there a way to find the name or identifier of nodes connected to a selectedItem?
I have a node with a button on it. When I click that button, it deletes the node and it's connections:
function removeNode() {
var diagram = $("#Diagram").ejDiagram("instance");
var selectedItem = diagram.model.selectedItems.children[0];
if (selectedItem) {
diagram.remove(selectedItem);
}
}
What I would like to do is also remove any node that is connected to that selected node. Is this possible?