draw_ascii() — langchain Function Reference
Architecture documentation for the draw_ascii() function in graph.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 13a11804_e143_4f7c_50b4_b373c1d17c72["draw_ascii()"] 646f3bb5_a594_563e_cfbf_e18bdc9efb90["Graph"] 13a11804_e143_4f7c_50b4_b373c1d17c72 -->|defined in| 646f3bb5_a594_563e_cfbf_e18bdc9efb90 9c4e946d_188d_0cd3_079c_100fc4754311["print_ascii()"] 9c4e946d_188d_0cd3_079c_100fc4754311 -->|calls| 13a11804_e143_4f7c_50b4_b373c1d17c72 style 13a11804_e143_4f7c_50b4_b373c1d17c72 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/langchain_core/runnables/graph.py lines 507–519
def draw_ascii(self) -> str:
"""Draw the graph as an ASCII art string.
Returns:
The ASCII art string.
"""
# Import locally to prevent circular import
from langchain_core.runnables.graph_ascii import draw_ascii # noqa: PLC0415
return draw_ascii(
{node.id: node.name for node in self.nodes.values()},
self.edges,
)
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does draw_ascii() do?
draw_ascii() is a function in the langchain codebase, defined in libs/core/langchain_core/runnables/graph.py.
Where is draw_ascii() defined?
draw_ascii() is defined in libs/core/langchain_core/runnables/graph.py at line 507.
What calls draw_ascii()?
draw_ascii() is called by 1 function(s): print_ascii.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free