selectEdgesByType(type) {

    const typeWL = utils.makeHashMap({
      [EdgeType.getInstance(type).id]: true,
    });

    return this.getEdgesForSet(this.getAllPotentialNodes(), null, typeWL);

  }
Select all edges of a given type.

@param {string|EdgeType} type - Either the edge type id (name) or an EdgeType object.