• Iterate over all the vertices connected to context vertex

    Parameters

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

      Graph

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

      id or Vertex.

    Returns Generator<Readonly<{
        id: string;
        out: readonly Readonly<{
            id: string;
            weight?: number;
        }>[];
    }>, void, unknown>