From 1b3bd52e0e9b7f733d86942ccf642de77df2b027 Mon Sep 17 00:00:00 2001 From: Vadym Barda Date: Sun, 8 Sep 2024 10:35:25 -0400 Subject: [PATCH] core[patch]: fix edge labels for mermaid graphs (#26201) --- libs/core/langchain_core/runnables/graph_mermaid.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 = " -.-> "