supercluster icon indicating copy to clipboard operation
supercluster copied to clipboard

Varying initial weights for points

Open ilyabo opened this issue 6 years ago • 0 comments

Supercluster assumes that all the input points are of the same weight 1. There are cases though in which it is desirable to assign varying initial weights to them. E.g. in this case the points have masses calculated as the sums of the magnitudes of their incoming/outgoing flows. Larger locations (e.g. Sydney) should have more inertia so that they are not moved too far when clustered with smaller ones. The PR addresses this by adding support for the optional weight property in the input points.

ilyabo avatar Mar 26 '19 23:03 ilyabo