removeEdge(edgeId) {
    const edge = this.findEdge(edgeId);
    if (!edge) {
      log.warn(`Unable to remove edge ${edgeId} - doesn't exist`)();
      return;
    }
    const sourceNode = this.findNode(edge.getSourceNodeId());
    const targetNode = this.findNode(edge.getTargetNodeId());

    delete this._edgeMap[edgeId];
    sourceNode.removeConnectedEdges(edge);
    targetNode.removeConnectedEdges(edge);
    this._touchLastUpdate();
  }
/**
   * Remove an edge from the graph by the edge ID
   * @param  {String|Number} edgeId - the target edge ID.
   */
Remove an edge from the graph by the edge ID
@param  {String|Number} edgeId - the target edge ID.
Remove an edge from the graph by the edge ID @param { String|Number } edgeId - the target edge ID .
removeEdge(edgeId) {
    const edge = this.findEdge(edgeId);
    if (!edge) {
      log.warn(`Unable to remove edge ${edgeId} - doesn't exist`)();
      return;
    }
    const sourceNode = this.findNode(edge.getSourceNodeId());
    const targetNode = this.findNode(edge.getTargetNodeId());
    delete this._edgeMap[edgeId];
    sourceNode.removeConnectedEdges(edge);
    targetNode.removeConnectedEdges(edge);
    this._touchLastUpdate();
  }
removeEdge ( edgeId ) { const edge = this . findEdge ( edgeId ) ; if ( ! edge ) { log . warn ( ` ${ edgeId } ` ) ( ) ; return ; } const sourceNode = this . findNode ( edge . getSourceNodeId ( ) ) ; const targetNode = this . findNode ( edge . getTargetNodeId ( ) ) ; delete this . _edgeMap [ edgeId ] ; sourceNode . removeConnectedEdges ( edge ) ; targetNode . removeConnectedEdges ( edge ) ; this . _touchLastUpdate ( ) ; }
Remove an edge from the graph by the edge ID
 @param  {String|Number} edgeId - the target edge ID.
Remove an edge from the graph by the edge ID @param { String|Number } edgeId - the target edge ID .