mirror of
https://github.com/hwchase17/langchain.git
synced 2025-08-08 12:31:49 +00:00
core[patch]: fix edge labels for mermaid graphs (#26201)
This commit is contained in:
parent
9bd4f1dfa8
commit
1b3bd52e0e
@ -119,9 +119,9 @@ def draw_mermaid(
|
|||||||
for i in range(0, len(words), wrap_label_n_words)
|
for i in range(0, len(words), wrap_label_n_words)
|
||||||
)
|
)
|
||||||
if edge.conditional:
|
if edge.conditional:
|
||||||
edge_label = f" -.  {edge_data}  .-> "
|
edge_label = f" -. {edge_data} .-> "
|
||||||
else:
|
else:
|
||||||
edge_label = f" --  {edge_data}  --> "
|
edge_label = f" -- {edge_data} --> "
|
||||||
else:
|
else:
|
||||||
if edge.conditional:
|
if edge.conditional:
|
||||||
edge_label = " -.-> "
|
edge_label = " -.-> "
|
||||||
|
Loading…
Reference in New Issue
Block a user