Delete linked nodes when deleting a node

Hi,
When the user deletes a node, I want to go through the existing links and possibly delete some connected nodes as well.

Can I use the SelectionDeleting event for this and delete some linked nodes from within the event handler, or is there some other approach I can/should use?

Yes, in a “SelectionDeleting” DiagramEvent listener you could choose to select some additional Nodes or Links that you want to be deleted.

Thanks, that worked fine!