Description:
When both nodes of an edge are removed via undo, the edge cannot be restored with redo. The history/redo stack appears to be corrupted in this specific case.
Steps to reproduce:
- Create two nodes and connect them with an edge
- Undo the first node (edge disappears)
- Undo the second node
- Try to redo → Edge does not reappear
Expected: Edge should be restored when both nodes are back
Actual: Edge remains missing