Class Graph<N, RunInput, RunOutput, NodeSpecType, C>

Type Parameters

Hierarchy (view full)

Constructors

Properties

branches: Record<string, Record<string, Branch<RunInput, N, any>>>
compiled: boolean
edges: Set<["__start__" | N, "__end__" | N]>
entryPoint?: string
nodes: Record<N, NodeSpecType>

Accessors

  • get allEdges(): Set<[string, string]>
  • Returns Set<[string, string]>

Methods

  • Parameters

    Returns this

  • Parameters

    Returns this

  • Parameters

    • startKey: "__start__" | N
    • endKey: "__end__" | N

    Returns this

  • Parameters

    • Optional __namedParameters: {
          checkpointer?: false | BaseCheckpointSaver<number>;
          interruptAfter?: "*" | N[];
          interruptBefore?: "*" | N[];
      }
      • Optional checkpointer?: false | BaseCheckpointSaver<number>
      • Optional interruptAfter?: "*" | N[]
      • Optional interruptBefore?: "*" | N[]

    Returns CompiledGraph<N, any, any, Record<string, any>>

  • Parameters

    • key: N

    Returns this

    Deprecated

    use addEdge(START, key) instead

  • Parameters

    • key: N

    Returns this

    Deprecated

    use addEdge(key, END) instead

  • Parameters

    • Optional interrupt: string[]

    Returns void

  • Parameters

    • message: string

    Returns void