d3/d3-quadtree

Remove should collapse more nodes.

mbostock opened this issue · 0 comments

We currently remove the leaf node on remove, but often there are sibling nodes that could be collapsed after the removal. We don’t do that, but we should; removing a node should exactly undo the adding of the node.