electricalCharge method
Returns the charge of the vertex, the value of ForceDirectedVertex#charge if it's a number, or else the value of #defaultElectricalCharge.
The electrical forces between two vertexes decrease by the square of the distance between them. Vertexes that are more than #infinityDistance apart are assumed to have no electrical charge effect on each other.
Please read the Introduction page on Extensions for how to override methods and how to call this base method. @expose @param {ForceDirectedVertex} v @return {number}
Implementation
_i2.num electricalCharge(_i3.ForceDirectedVertex v) => _i4.callMethod(
this,
'electricalCharge',
[v],
);