Returns true if vertex only has the given list of vertices. Returns false early if the length of the list does not match up with vertex.out

  • Parameters

    • graph: Readonly<{
          vertices: IMapImmutable<string, Readonly<{
              id: string;
              out: readonly Readonly<{
                  id: string;
                  weight?: number;
              }>[];
          }>>;
      }>
    • vertex: string | Readonly<{
          id: string;
          out: readonly Readonly<{
              id: string;
              weight?: number;
          }>[];
      }>
    • Rest...outIdOrVertex: (string | Readonly<{
          id: string;
          out: readonly Readonly<{
              id: string;
              weight?: number;
          }>[];
      }>)[]

    Returns boolean