{"data":{"slug":"chunelfeng-cgraph","name":"CGraph","tagline":"A common used C++ & Python DAG framework","github_url":"https://github.com/ChunelFeng/CGraph","owner":"ChunelFeng","repo":"CGraph","owner_avatar_url":"https://avatars.githubusercontent.com/u/37905059?v=4","primary_language":"C++","stars":2315,"forks":391,"topics":["ai","ai-agents","dag","graph","langgraph","pipeline","taskflow","workflow"],"archived":false,"github_pushed_at":"2026-10-24T15:09:11+00:00","maintenance_label":"Very active","stars_delta_30d":13,"url":"https://www.graphcanon.com/tools/chunelfeng-cgraph","markdown_url":"https://www.graphcanon.com/tools/chunelfeng-cgraph.md","api_url":"https://www.graphcanon.com/api/graphcanon/tools/chunelfeng-cgraph","graph_url":"https://www.graphcanon.com/api/graphcanon/graph?tool=chunelfeng-cgraph","description":"【A common used C++ & Python DAG framework】 一个通用的、无三方依赖的、跨平台的、收录于awesome-cpp的、基于流图的并行计算框架。欢迎star & fork & 交流","homepage_url":"http://www.chunel.cn","license":"MIT","open_issues":13,"watchers":31,"ai_summary":"CGraph is a cross-platform Directed Acyclic Graph (DAG) framework based on pure C++ without any third-party dependencies, supporting the construction of custom operators and pipelines for various workflows.","readme_excerpt":"# pip install pycgraph\n\nimport time\nfrom datetime import datetime\n\nfrom pycgraph import GNode, GPipeline\n\nclass MyNode1(GNode):\n    def run(self):\n        print(\"[{0}] {1}, sleep for 1 second ... \".format(datetime.now(), self.getName()))\n        time.sleep(1)\n        return 0\n\nclass MyNode2(GNode):\n    def run(self):\n        print(\"[{0}] {1}, sleep for 2 second ... \".format(datetime.now(), self.getName()))\n        time.sleep(2)\n        return 0\n\n\nif __name__ == '__main__':\n    pipeline = GPipeline()\n    a, b, c, d = MyNode1(), MyNode2(), MyNode1(), MyNode2()\n\n    pipeline.registerGElement(a, set(), \"nodeA\")\n    pipeline.registerGElement(b, {a}, \"nodeB\")\n    pipeline.registerGElement(c, {a}, \"nodeC\")\n    pipeline.registerGElement(d, {b, c}, \"nodeD\")\n\n    pipeline.process()\n```\n\n</details>\n\n<details>\n<summary><b>其他版本</b></summary>\n\n* [CsCGraph](https://github.com/ChunelFeng/CsCGraph) : A CSharp native, CGraph-API-liked DAG project\n* [JaCGraph](https://github.com/ChunelFeng/JaCGraph) : A Java native, CGraph-API-liked DAG project\n* [GoCGraph](https://github.com/AsunaU2/GoCGraph) : A Go native, CGraph-API-liked DAG project\n* [CGraph-lite](https://github.com/ChunelFeng/CGraph-lite) : A one-header-only, CGraph-API-liked DAG project, lite version by C++\n\n</details>\n\n----","github_created_at":"2021-04-26T12:06:33+00:00","created_at":"2026-07-15T10:48:53.558388+00:00","updated_at":"2026-10-26T06:00:41.091491+00:00","categories":[{"slug":"developer-tools","name":"Developer Tools","url":"https://www.graphcanon.com/categories/developer-tools","markdown_url":"https://www.graphcanon.com/categories/developer-tools.md","api_url":"https://www.graphcanon.com/api/graphcanon/categories/developer-tools"}],"tags":[{"slug":"ai","name":"ai"},{"slug":"ai-agents","name":"ai-agents"},{"slug":"dag","name":"dag"},{"slug":"graph","name":"graph"},{"slug":"pipeline","name":"pipeline"},{"slug":"taskflow","name":"taskflow"},{"slug":"workflow","name":"workflow"}],"trust":{"provenance":{"is_fork":false,"github_id":361735570,"owner_type":"User","methodology":"github_public_v1","parent_repo":null,"near_duplicate_slugs":[]},"computed_at":"2026-10-26T06:00:39.914Z","maintenance":{"label":"Very active","score":96,"methodology":"github_public_v1","releases_90d":2,"days_since_push":1,"last_release_at":"2026-10-24T15:41:00Z","stars_delta_30d":13,"open_issues_delta_30d":2},"security_summary":{"last_scan_at":"2026-07-15T10:48:56.092523+00:00","scan_profile":"deps","status":"no_lockfile","critical_count":0,"high_count":0,"medium_count":0,"low_count":0,"scanner":"osv@v1","scan_id":"7ea03c4f-e209-4224-9faa-fea15d3dfe78","pending_review_count":0}},"capability_facts":{"mcp":{"method":"github-tree-and-contents@2","reason":"No explicit MCP server declaration was found in the inspected manifests. Other layouts and implementations were not tested.","source":"repo_scan","status":"unknown","revision":"9a102406ff6c173e78020e3540b33acfa28f182b","source_url":"https://github.com/ChunelFeng/CGraph/tree/9a102406ff6c173e78020e3540b33acfa28f182b","observed_at":"2026-10-26T06:00:40.271Z","server_manifest":null},"scan":{"method":"github-tree-and-contents@2","source":"repo_scan","status":"complete","version":2,"coverage":{"scope":"bounded-repository-manifests","tree_complete":true,"selected_files":1,"candidate_files":1},"revision":"9a102406ff6c173e78020e3540b33acfa28f182b","source_url":"https://github.com/ChunelFeng/CGraph/tree/9a102406ff6c173e78020e3540b33acfa28f182b","observed_at":"2026-10-26T06:00:40.271Z","observations":[{"path":"@revision","bytes":3266,"status":"present","revision":"9a102406ff6c173e78020e3540b33acfa28f182b","source_url":"https://github.com/ChunelFeng/CGraph/commit/9a102406ff6c173e78020e3540b33acfa28f182b","http_status":200,"observed_at":"2026-10-26T06:00:40.424Z"},{"path":"@tree","bytes":125104,"status":"present","revision":"9a102406ff6c173e78020e3540b33acfa28f182b","source_url":"https://github.com/ChunelFeng/CGraph/tree/9a102406ff6c173e78020e3540b33acfa28f182b","http_status":200,"observed_at":"2026-10-26T06:00:40.588Z"},{"path":"docker-compose.yml","reason":"not-listed-in-complete-tree","status":"not-found","revision":"9a102406ff6c173e78020e3540b33acfa28f182b","source_url":"https://github.com/ChunelFeng/CGraph/tree/9a102406ff6c173e78020e3540b33acfa28f182b","observed_at":"2026-10-26T06:00:40.589Z"},{"path":"Dockerfile","reason":"not-listed-in-complete-tree","status":"not-found","revision":"9a102406ff6c173e78020e3540b33acfa28f182b","source_url":"https://github.com/ChunelFeng/CGraph/tree/9a102406ff6c173e78020e3540b33acfa28f182b","observed_at":"2026-10-26T06:00:40.589Z"},{"path":"mcp.json","reason":"not-listed-in-complete-tree","status":"not-found","revision":"9a102406ff6c173e78020e3540b33acfa28f182b","source_url":"https://github.com/ChunelFeng/CGraph/tree/9a102406ff6c173e78020e3540b33acfa28f182b","observed_at":"2026-10-26T06:00:40.589Z"},{"path":"package.json","reason":"not-listed-in-complete-tree","status":"not-found","revision":"9a102406ff6c173e78020e3540b33acfa28f182b","source_url":"https://github.com/ChunelFeng/CGraph/tree/9a102406ff6c173e78020e3540b33acfa28f182b","observed_at":"2026-10-26T06:00:40.589Z"},{"path":"pyproject.toml","reason":"not-listed-in-complete-tree","status":"not-found","revision":"9a102406ff6c173e78020e3540b33acfa28f182b","source_url":"https://github.com/ChunelFeng/CGraph/tree/9a102406ff6c173e78020e3540b33acfa28f182b","observed_at":"2026-10-26T06:00:40.589Z"},{"path":"python/pyproject.toml","bytes":336,"status":"present","revision":"9a102406ff6c173e78020e3540b33acfa28f182b","source_url":"https://github.com/ChunelFeng/CGraph/blob/9a102406ff6c173e78020e3540b33acfa28f182b/python/pyproject.toml","http_status":200,"observed_at":"2026-10-26T06:00:40.744Z"},{"path":"server.json","reason":"not-listed-in-complete-tree","status":"not-found","revision":"9a102406ff6c173e78020e3540b33acfa28f182b","source_url":"https://github.com/ChunelFeng/CGraph/tree/9a102406ff6c173e78020e3540b33acfa28f182b","observed_at":"2026-10-26T06:00:40.589Z"}]},"languages":{"value":["c++","python"],"method":"github-tree-and-contents@2","source":"github.language+python/pyproject.toml","revision":"9a102406ff6c173e78020e3540b33acfa28f182b","source_url":"https://github.com/ChunelFeng/CGraph/tree/9a102406ff6c173e78020e3540b33acfa28f182b","observed_at":"2026-10-26T06:00:40.271Z"},"license_spdx":{"value":"MIT","source":"github.license","observed_at":"2026-10-26T06:00:40.271Z"}},"decision_facts":{"hosting":null,"pricing":{"model":"freemium","summary":"Free and open-source software with a MIT license, offering gratis usage for all, including for commercial purposes."},"requirements":{"notes":["C++11 support is required in your compiler.","Python version 'pycgraph' package is supported for Python API usage."],"min_ram_gb":0.5,"requires_docker":false},"constraints":{"min_ram_gb":0.5,"pricing_model":"freemium","requires_docker":false},"when_to_use":["Use CGraph when you need a cross-platform DAG framework that supports constructing custom operators directly in C++.","Choose it if your project benefits from Python API integration and requires handling both dependence and parallel execution.","Opt for CGraph if avoiding third-party library dependencies is crucial to your development environment."],"when_not_to_use":["Avoid using CGraph when your workflow primarily involves tasks that are better suited for language ecosystems outside of C++ and Python, such as Java or JavaScript.","Do not use this framework if you require specialized features provided by specific third-party libraries that enhance or tailor the capabilities beyond what pure C++ offers."],"source":"enrich:decision_facts","observed_at":"2026-07-17T06:15:06.196Z"},"constraint_facets":{"min_ram_gb":0.5,"pricing_model":"freemium","requires_docker":false},"decision_summary":[{"label":"Pricing","value":"freemium - Free and open-source software with a MIT license, offering gratis usage for all, including for commercial purposes."},{"label":"Requirements","value":"Min 0.5 GB RAM; C++11 support is required in your compiler.; Python version 'pycgraph' package is supported for Python API usage."},{"label":"Adopt for","value":"Unverified catalog guidance: CGraph is a cross-platform Directed Acyclic Graph (DAG) framework in pure C++, aiding developers in building custom operators and pipelines for various workflows without any third-party dependencies."},{"label":"License detail","value":"MIT"}]}}