edgeAsObj() {
    const edge = this.edge(...arguments);
    if (typeof edge !== "object") {
      return {label: edge};
    }

    return edge;
  }
Gets the label for the specified edge and converts it to an object.
Complexity: O(1)