GraphErrorError thrown by graph operations when the requested graph structure is invalid, such as referencing a missing node or using unsupported edge weights.
When to use
Use when handling failures thrown by graph operations that reject invalid graph structure or unsupported algorithm inputs.
errors
Source effect/Graph.ts:3463 lines
export class class GraphErrorclass GraphError {
name: string;
message: string;
stack: string;
cause: unknown;
pipe: { <A>(this: A): A; <A, B = never>(this: A, ab: (_: A) => B): B; <A, B = never, C = never>(this: A, ab: (_: A) => B, bc: (_: B) => C): C; <A, B = never, C = never, D = never>(this: A, ab: (_: A) => B, bc: (_: B) => C, cd: (_: C) => D): D; <…;
toString: () => string;
toJSON: () => unknown;
_tag: Tag;
}
Error thrown by graph operations when the requested graph structure is
invalid, such as referencing a missing node or using unsupported edge
weights.
When to use
Use when handling failures thrown by graph operations that reject invalid
graph structure or unsupported algorithm inputs.
GraphError extends import DataData.TaggedError("GraphError")<{
readonly message: stringmessage: string
}> {}Referenced by 7 symbols