mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-27 22:37:46 +00:00
core(mermaid): fix error when 3+ subgraph levels (#29970)
This commit is contained in:
@@ -145,6 +145,9 @@ def draw_mermaid(
|
||||
for nested_prefix in edge_groups:
|
||||
if not nested_prefix.startswith(prefix + ":") or nested_prefix == prefix:
|
||||
continue
|
||||
# only go to first level subgraphs
|
||||
if ":" in nested_prefix[len(prefix) + 1 :]:
|
||||
continue
|
||||
add_subgraph(edge_groups[nested_prefix], nested_prefix)
|
||||
|
||||
if prefix and not self_loop:
|
||||
|
Reference in New Issue
Block a user