Return a string representation of the graph for debug inspection

  • Parameters

    • graph: Readonly<{
          edges: readonly Readonly<{
              a: string;
              b: string;
              weight?: number;
          }>[];
          vertices: IMapImmutable<string, Readonly<{
              id: string;
          }>>;
      }>

    Returns string