Returns true if vertex has an outgoing connection to the supplied id or vertex.

If vertex is undefined, false is returned.

  • Parameters

    • vertex: Readonly<{
          id: string;
          out: readonly Readonly<{
              id: string;
              weight?: number;
          }>[];
      }>

      From vertex

    • outIdOrVertex: string | Readonly<{
          id: string;
          out: readonly Readonly<{
              id: string;
              weight?: number;
          }>[];
      }>

      To vertex

    Returns boolean