# ChunelFeng/CGraph

【A common used C++ & Python DAG framework】 一个通用的、无三方依赖的、跨平台的、收录于awesome-cpp的、基于流图的并行计算框架。欢迎star & fork & 交流

Repository: https://github.com/ChunelFeng/CGraph
Canonical: https://ross.abutalabs.com/products/cgraph
Homepage: http://www.chunel.cn
Language: C++
License: MIT
License Family: permissive
Topics: dag, workflow, taskflow, pipeline, graph, ai, ai-agents, langgraph
Last push: 2026-08-22T14:12:55+00:00

## Health v2 (maintenance only)
Score: 95/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 86, longevity 100
- inputs: {"age_days": 1955, "days_push": 11, "days_rel": 18, "gap_med": 62, "n_releases_24m": 10}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2301, forks 389 (observed 2026-08-28T04:06:35.433508+00:00)

## What it is
CGraph is a cross-platform directed acyclic graph (DAG) execution framework written in pure C++11 with no third-party dependencies, also offering Python bindings (pycgraph). It lets users define nodes and dependency groups to schedule tasks with parallelism, conditionals, loops, pause/resume, and timeout control.

## Use cases
- run dependent tasks as a DAG pipeline
- execute independent tasks in parallel with dependency control
- build a workflow engine in C++ without third-party libraries
- schedule AI agent pipelines as a graph
- add pause, resume, and timeout handling to task graphs
- compare DAG scheduling performance against taskflow

## When to choose
- you need a dependency-free, header-friendly C++ DAG scheduler
- you want cross-platform support including Android
- you prefer Python APIs for building pipelines
- you need fine-grained control over conditional, loop, and concurrent graph execution

## When to avoid
- you need distributed multi-machine task orchestration
- you want a batteries-included workflow UI like Airflow
- your project already standardizes on another task framework such as taskflow

## Facets
- artifact type: framework
- maturity: active
- function: workflow-automation, concurrency, scheduling
- domain: developer-tools
- platform: cpp, python, windows, cross-platform
- tags: dag, pipeline, task-graph, parallel-computing, no-dependencies, pycgraph, automation, algorithms, linux, macos, android

## Member repositories
- ChunelFeng/CGraph (main) score 95

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:35.433508+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:40:11.251549+00:00, confidence not recorded.
  - readme: https://github.com/ChunelFeng/CGraph (fetched 2026-08-28T04:06:35.433508+00:00, sha 451a7842170a)
  - homepage: http://www.chunel.cn (fetched 2026-08-29T10:20:24.197259+00:00, sha 7960e912c00f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
