supercluster
supercluster copied to clipboard
Varying initial weights for points
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.