- hasOut(graph, vertex, outIdOrVertex): boolean
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;
}>[];
}> - outIdOrVertex: string | Readonly<{
id: string;
out: readonly Readonly<{
id: string;
weight?: number;
}>[];
}>
Returns boolean
Returns true if
vertex
has an outgoing connection to the given vertex.