- vertexHasOut(vertex, outIdOrVertex): boolean
Parameters
- vertex: 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 supplied id or vertex.If
vertex
is undefined, false is returned.