• Returns a new graph which is transitively reduced. That is, redundant edges are removed

    Parameters

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

    Returns Readonly<{
        vertices: IMapImmutable<string, Readonly<{
            id: string;
            out: readonly Readonly<{
                id: string;
                weight?: number;
            }>[];
        }>>;
    }>