This force takes the mean of all the neighbors (in the graph sense) of a particle (and optionally itself) and applies it to itself.
The following parameters defines the training of the force and can be passed
along a call to
include_self : Should the velocity of itself be included in the mean
mode : How should neighbors be found?
'all' uses all edges.
only uses outbound edges, and
'in' only uses inbound edges. Ignored for
undirected particle graphs
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.