{"repo":"ChunelFeng/CGraph","free":true,"listed":false,"github":"https://github.com/ChunelFeng/CGraph","clone":"git clone https://github.com/ChunelFeng/CGraph.git","description":"【A common used C++ & Python DAG framework】 一个通用的、无三方依赖的、跨平台的、收录于awesome-cpp的、基于流图的并行计算框架。欢迎star & fork & 交流","language":"C++","stars":2298,"topics":["dag","workflow","taskflow","pipeline","graph","ai","ai-agents"],"license":"MIT","category":"workflow-automation","readme_excerpt":"中文 English Readme deepwiki CGraph 说明文档 CGraph is a cross-platform D irected A cyclic G raph framework based on pure C++ without any 3rd-party dependencies. You, with it, can build your own operators simply, and describe any running schedules as you need, such as dependence, parallelling, aggregation, conditional and so on. Python APIs are also supported to build your pipeline. Tutorials and contact information are shown as follows. Please get in touch with us for free if you need more about this repository. 一. 简介 CGraph 中文名为【色丶图】，是一套无任何第三方依赖的跨平台图流程执行框架。通过 GPipeline (流水线)底层调度，提供了包含依赖元素依次执行、非依赖元素并发执行，支持暂停、恢复、超时设定的 eDAG 调度功能。 使用者只需继承 GNode (节点)类，实现子类的 run() 方法，并根据需要设定依赖关系，即可实现任务的图化执行或流水线执行。还可以通过设定各种包含多节点信息的 GGroup (组)，自行控制图的条件判断、循环和并发执行逻辑。 本工程使用纯C++11标准库编写，无任何第三方依赖，兼容 MacOS 、 Linux 、 Windows 和 Android 系统。支持本地编译和二次开发，并且提供 Python 版本： pycgraph 。编译和安装方法，请参考 CGraph 编译说明 详细功能介绍和用法，请参考 一面之猿网 中的文章内容。相关视频在B站持续更新中，欢迎观看和交流： 【B站视频】CGraph 入门篇 【B站视频】CGraph 功能篇 全面介绍CGraph项目中，所有的名词术语和功能模块 结合实际coding过程，详细介绍了每个功能的具体的使用场景、用法、以及解决的问题 适合想要全面了解功能和快速上手使用CGraph的童鞋 适合对多线程编程感兴趣的童鞋 【B站视频】CGraph 应用篇 【B站视频】CGraph 分享篇 ---- 二. 入门Demo C++ 版本 如上图所示，图结构执行的时候，首先执行 a 节点。 a 节点执行完毕后，并行执行 b 和 c 节点。 b 和 c 节点全部执行完毕后，再执行 d 节点。 Python 版本 其他版本 CsCGraph : A CSharp native, CGraph-API-liked DAG project JaCGraph : A Java native, CGraph-API-liked DAG project GoCGraph : A Go native, CGraph-API-liked DAG project CGraph-lite : A one-header-only, CGraph-API-liked DAG project, lite version by C++ ---- 三. 推荐阅读 纯序员给你介绍图化框架的简单实现——执行逻辑","default_branch":null,"files":null,"tree":[],"storefront":"/r/ChunelFeng","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ChunelFeng/CGraph/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}