This is meant to be an interactive example of connecting nodes in a graph based off of metric distance. For any node, that node is connected to any other nodes that are within a radius R
of that node.
Use the inputs to the right to adjust variables:
[-M, M]
for both x and yTo see the neighborhood radius for an individual node, hover your mouse over that node. To see the radius for all nodes, use the Show Radius
and Hide Radius
buttons.
Use the New Points
to generate a new random set of points from the current parameters.
forked from lwthatcher's block: Random Points II
Modified http://www.numericjs.com/lib/numeric-1.2.6.js to a secure url
https://d3js.org/d3.v4.min.js
https://www.numericjs.com/lib/numeric-1.2.6.js
https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js
https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js