Union find takes as input some undirected graph N,
E> and internally constructs (and progressively mutates) a directed graph N,
E'> which it uses to efficiently answer queries about whether two nodes
n₁,
n₂ ∈
N are in the same connected component of N,
E>. It additionally supports incrementally adding edges to
E.
My quest was to find a way to incrementally delete edges from E, not E'. You're talking about deleting edges from E', which I agree is not generally a useful thing to do.
For example, your N might be the cells of a maze map, and your E might be the connections between adjacent cells that are not separated by a wall. In that case you can tear down a wall and add a corresponding edge to E. But it would be nice in some cases to rebuild a wall, which might separate two previously connected parts of the maze. I was looking for an efficient way to handle that, but I didn't find one.