Function adjacentVertices
- adjacentVertices(graph, context): Generator<Readonly<{
id: string;
out: readonly Readonly<{
id: string;
weight?: number;
}>[];
}>, void, unknown> Parameters
- graph: Readonly<{
vertices: IMapImmutable<string, Readonly<{
id: string;
out: readonly Readonly<{
id: string;
weight?: number;
}>[];
}>>;
}> - context: undefined | string | Readonly<{
id: string;
out: readonly Readonly<{
id: string;
weight?: number;
}>[];
}>
Returns Generator<Readonly<{
id: string;
out: readonly Readonly<{
id: string;
weight?: number;
}>[];
}>, void, unknown>
Iterate over all the vertices connected to
context
vertex