LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
    • Overview
    • Graphs
    • Functional API
    • Pregel
    • Checkpointing
    • Storage
    • Caching
    • Types
    • Runtime
    • Config
    • Errors
    • Constants
    • Channels
    • Agents
    LangGraph Checkpoint
    LangGraph Store
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    ⌘I

    LangChain Assistant

    Ask a question to get started

    Enter to send•Shift+Enter new line

    Menu

    OverviewGraphsFunctional APIPregelCheckpointingStorageCachingTypesRuntimeConfigErrorsConstantsChannelsAgents
    LangGraph Checkpoint
    LangGraph Store
    Checkpoint Postgres
    Store Postgres
    Checkpoint SQLite
    LangGraph Prebuilt
    LangGraph CLI
    LangGraph SDK
    LangGraph Supervisor
    LangGraph Swarm
    Language
    Theme
    Pythonlanggraphpregel_drawdraw_graph
    Functionā—Since v0.6

    draw_graph

    Copy
    draw_graph(
      config: RunnableConfig,
      *,
      nodes: dict[str, PregelNode],
      
    View source on GitHub
    specs
    :
    dict
    [
    str
    ,
    BaseChannel
    |
    ManagedValueSpec
    ]
    ,
    input_channels
    :
    str
    |
    Sequence
    [
    str
    ]
    ,
    interrupt_after_nodes
    :
    All
    |
    Sequence
    [
    str
    ]
    ,
    interrupt_before_nodes
    :
    All
    |
    Sequence
    [
    str
    ]
    ,
    trigger_to_nodes
    :
    Mapping
    [
    str
    ,
    Sequence
    [
    str
    ]
    ]
    ,
    checkpointer
    :
    Checkpointer
    ,
    subgraphs
    :
    dict
    [
    str
    ,
    Graph
    ]
    ,
    limit
    :
    int
    =
    250
    )
    ->
    Graph

    Parameters

    NameTypeDescription
    config*RunnableConfig
    subgraphs*dict[str, Graph]
    checkpointer*Checkpointer

    Get the graph for this Pregel instance.

    The configuration to use for the graph.

    The subgraphs to include in the graph.

    The checkpointer to use for the graph.