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 wield()
include_self
: Should the velocity of itself be included in the mean
calculation
mode
: How should neighbors be found? 'all'
uses all edges. 'out'
only uses outbound edges, and 'in'
only uses inbound edges. Ignored for
undirected particle graphs
Other forces:
center_force
,
collision_force
,
field_force
,
link_force
,
manybody_force
,
map_force
,
random_force
,
reset_force
,
trap_force
,
x_force
,
y_force