langgraph-parallel
Installation
SKILL.md
LangGraph Parallel Execution
Run independent nodes concurrently for performance.
Fan-Out/Fan-In Pattern
from langgraph.graph import StateGraph
def fan_out(state):
"""Split work into parallel tasks."""
state["tasks"] = [{"id": 1}, {"id": 2}, {"id": 3}]
return state
def worker(state):
"""Process one task."""
task = state["current_task"]
result = process(task)
return {"results": [result]}