mode = "grid_advanced" utilizes minimum spanning tree to merge adjacent grids with intersecting grids less than a threshold.
In a highly clustered point sets, this approach results in broad outskirts and a few internal unmerged grids. Points in the outskirt could exceed the number of intersecting points with any grids, which is not intended.
Simple go-around is that the merged grids are split by a few horizontal/vertical line
Could we design this in a sophisticated way while keeping a decent performance?
mode = "grid_advanced"
utilizes minimum spanning tree to merge adjacent grids with intersecting grids less than a threshold.