Nodes connected to a deleted link

We were trying to perform some operations on deleting a link. We would like to find out the to and from nodes when we delete a link between the two nodes.
How do we achieve this?

Your question is ambiguous about whether you want to execute some code before the link is deleted or after the link is deleted. So choose either the “SelectionDeleting” or “SelectionDeleted” DiagramEvent. Or both.

A post was split to a new topic: Separate figures in a Path Geometry