diff --git a/libs/core/langchain_core/runnables/graph_mermaid.py b/libs/core/langchain_core/runnables/graph_mermaid.py index a471ffe26f6..1d06095b7b7 100644 --- a/libs/core/langchain_core/runnables/graph_mermaid.py +++ b/libs/core/langchain_core/runnables/graph_mermaid.py @@ -119,9 +119,9 @@ def draw_mermaid( for i in range(0, len(words), wrap_label_n_words) ) if edge.conditional: - edge_label = f" -.  {edge_data}  .-> " + edge_label = f" -.  {edge_data}  .-> " else: - edge_label = f" --  {edge_data}  --> " + edge_label = f" --  {edge_data}  --> " else: if edge.conditional: edge_label = " -.-> "