addLink method

LayoutEdge addLink(
  1. Link link
)

This convenience method makes sure there is a LayoutEdge in this network corresponding to a Link. If #findEdge returns null, this method creates a new LayoutEdge, makes sure the Link#fromNode and Link#toNode have corresponding LayoutVertexes in the network, and adds the edge itself to the network. @param {Link} link @return {LayoutEdge} an edge in this network.

Implementation

_i3.LayoutEdge addLink(_i3.Link link) => _i4.callMethod(
      this,
      'addLink',
      [link],
    );