diff --git a/libs/core/langchain_core/runnables/graph.py b/libs/core/langchain_core/runnables/graph.py index c1906b5515..b172b71239 100644 --- a/libs/core/langchain_core/runnables/graph.py +++ b/libs/core/langchain_core/runnables/graph.py @@ -135,3 +135,6 @@ class Graph: {node.id: node_data(node) for node in self.nodes.values()}, [(edge.source, edge.target) for edge in self.edges], ) + + def print_ascii(self) -> None: + print(self.draw_ascii())