FormDiagram.edge_forcedensity

FormDiagram.edge_forcedensity(edge, q=None)[source]

Get or set the forcedensity in an edge.

Parameters
  • edge (int or tuple) – The identifier of the edge. This can be the index in the edge list or a tuple of vertices.

  • q (float, optional) – If no new value is given, the current forcedensity value will be returned. Otherwise the stored value is updated with the provided one.

Returns

float or None – The current forcedensity in the edge if no new value is given. Otherwise, nothing.