[PR #74] [CLOSED] feat: stategraph parser #1217

Closed
opened 2026-02-20 17:44:12 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langchain-ai/langgraph/pull/74
Author: @stugorf
Created: 1/30/2024
Status: Closed

Base: mainHead: mermaid-viz


📝 Commits (1)

📊 Changes

9 files changed (+451 additions, -0 deletions)

View changed files

langgraph/parser/README.md (+20 -0)
langgraph/parser/__init__.py (+0 -0)
langgraph/parser/config/config.json (+11 -0)
langgraph/parser/docker-compose.yml (+7 -0)
langgraph/parser/graph_parser.py (+208 -0)
langgraph/parser/mermaid-config.json (+7 -0)
langgraph/parser/mermaid.css (+47 -0)
langgraph/parser/simple_agent.png (+0 -0)
langgraph/parser/simple_agent.py (+151 -0)

📄 Description

While developing in LangGraph it can be helpful for the developer to visualize the
flowchart representing the logic flow of their StateGraph.This parser reads a python
file and creates an abstract syntax tree (AST) of the StateGraph. The AST is then
translated into Mermaid charting language and saved as a PNG.

NOTE: I have never committed to an open-source project

This PR is related to a conversation I had with @hwchase17


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langchain-ai/langgraph/pull/74 **Author:** [@stugorf](https://github.com/stugorf) **Created:** 1/30/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `mermaid-viz` --- ### 📝 Commits (1) - [`125fb31`](https://github.com/langchain-ai/langgraph/commit/125fb31fd46c3229669bd423c29273412d0e64c1) feat: stategraph parser ### 📊 Changes **9 files changed** (+451 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `langgraph/parser/README.md` (+20 -0) ➕ `langgraph/parser/__init__.py` (+0 -0) ➕ `langgraph/parser/config/config.json` (+11 -0) ➕ `langgraph/parser/docker-compose.yml` (+7 -0) ➕ `langgraph/parser/graph_parser.py` (+208 -0) ➕ `langgraph/parser/mermaid-config.json` (+7 -0) ➕ `langgraph/parser/mermaid.css` (+47 -0) ➕ `langgraph/parser/simple_agent.png` (+0 -0) ➕ `langgraph/parser/simple_agent.py` (+151 -0) </details> ### 📄 Description While developing in LangGraph it can be helpful for the developer to visualize the flowchart representing the logic flow of their StateGraph.This parser reads a python file and creates an abstract syntax tree (AST) of the StateGraph. The AST is then translated into Mermaid charting language and saved as a PNG. NOTE: I have never committed to an open-source project This PR is related to a conversation I had with @hwchase17 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-20 17:44:12 -05:00
yindo closed this issue 2026-02-20 17:44:12 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraph#1217