Return a string representation of the graph for debug inspection

  • Parameters

    • graph: Readonly<{
          vertices: IMapImmutable<string, Readonly<{
              id: string;
              out: readonly Readonly<{
                  id: string;
                  weight?: number;
              }>[];
          }>>;
      }> | Iterable<Readonly<{
          id: string;
          out: readonly Readonly<{
              id: string;
              weight?: number;
          }>[];
      }>>

    Returns string