LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • Graphs
  • Functional API
  • Pregel
  • Checkpointing
  • Storage
  • Caching
  • Types
  • Runtime
  • Config
  • Errors
  • Constants
  • Channels
  • Agents
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 CLI
LangGraph SDK
LangGraph Supervisor
LangGraph Swarm
Language
Theme
Pythonlanggraphpregel_drawdraw_graph
Function●Since v0.6

draw_graph

Get the graph for this Pregel instance.

Copy
draw_graph(
  config: RunnableConfig,
  *,
  nodes: dict[str, PregelNode],
  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

The configuration to use for the graph.

subgraphs*dict[str, Graph]

The subgraphs to include in the graph.

checkpointer*Checkpointer

The checkpointer to use for the graph.

View source on GitHub