springStiffness method

num springStiffness(
  1. ForceDirectedEdge e
)

Returns the stiffness of the spring representing an edge.

The spring force between two vertexes connected by an edge is linearly proportional by distance to the difference between the #springLength and the distance. When the distance is greater than the length, the force pulls the vertexes closer to each other. When the distance is less than the length, the force pushes them apart.

The two vertexes connected by the edge E are acted upon by a force of proportional to springStiffness(E) * (getNodeDistance(E.fromVertex, E.toVertex) - springLength(E)) divided by the distance between the vertexes. Please read the Introduction page on Extensions for how to override methods and how to call this base method. @expose @param {ForceDirectedEdge} e @return {number} Returns the stiffness of the edge representing a link, the value of ForceDirectedEdge#stiffness if it's a number, or else the value of #defaultSpringStiffness.

Implementation

_i2.num springStiffness(_i3.ForceDirectedEdge e) => _i4.callMethod(
      this,
      'springStiffness',
      [e],
    );