Gravity_JavaScript There is X number of demand of points and Y number of supplier points. X will be supplied by closest Y X and Y numbers should be user definable. The results is a Window with lines between the chosen supply point and customer node.