Top AI Repos — open-source AI, indexed and scored
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
VUE plugin for DAG graph , u can use it 4 flow diagram or machine learning visualization
| Date | Stars |
|---|---|
| 2026-07-31 | 403 |
| 2026-08-03 | 403 |
| 2026-08-06 | 403 |
Today
— stars today
This week
— stars this week
This month
— stars this month
Momentum
0.0
growth rate 0.00%/day
## VUE DAG diagram
===========
[for English guide , click there](https://github.com/murongqimiao/DAG-diagram/blob/master/README_EN.md)
[DEMO](https://murongqimiao.github.io/DAG-diagram/#/)
[DEMO 国内用](http://39.106.169.7/#/)
## 使用说明
[B站视频 https://www.bilibili.com/video/av80288517/](https://www.bilibili.com/video/av80288517/)
## 重要提醒
老版本为vue2, node版本16以上强烈建议使用vue3版本.
示例项目安装方法为joao-cli安装
npm install -g joao-cli
joao init 根据提示输入新建项目名称
cd project npm i && npm run dev 打开localhost:5173
localhost:5173/dag就是示例页面
## 效果展示
- 画布移动 / 复原
![[图片上传中...(画布缩放.gif-823313-1567493208259-0)]
](https://upload-images.jianshu.io/upload_images/6385607-13e8af401de01819.gif?imageMogr2/auto-orient/strip)
- 画布缩放 / 复原

- 拖动节点

- 框选拖动多个节点

- 添加节点

- 删除节点

- 添加节点关系

- 删除节点关系

- 添加节点入口 / 出口

- 展示模型训练流程 ( 自定义用法需自行开发 )

## 使用方法
- 基础安装
```
npm install --save dag-board
```
vue项目的main.js中
```
import DAGBoard from 'dag-board'
Vue.use(DAGBoard)
```
具体文件里中
```
<DAGBoard :DataAll="DataAll" @updateDAG="updateDAG" @editNodeDetails="editNodeDetails"></DAGBoard>
```
```
DataAll: 数据源
updateDAG:每次动作行为会抛出最新的数据, 和对应事件名称.
editNodeDetails: 可选内容,右键点击节点会带出节点数据,用此方法接受, 进行二次开发.比如更改节点携带的数据等.
```
- 高级安装 (动态添加节点的时候模拟用)
```
<node-bus v-if="nodeBusDragging" // 是否正在添加节点
:value="nodeName" // 模拟的节点名称
:pos_x="nodeBusPositionX" // 动态赋值 鼠标位置的x坐标
:pos_y="nodeBusPositionY" /> // 动态赋值 鼠标位置的y坐标
```
`以上内容均可前往github 下载项目查看使用过程, 熟练使用vue即可无障碍阅读代码.`
### 数据源的扩展性 / 样式自定义
为了更多同学能友好体验,在github右侧有JSON模拟器.使用如下图.
- 节点自定义

```
一份完整的节点包括以下几个内容
{
"id": 1, // 节点id
"in_ports": [ 0 ], // 入口下标
"name": "NODE_PARENT", // 节点名称
"out_ports": [ 0, 1 ], // 出口下标
"pos_x": 157, // 节点坐标 距离左侧
"pos_y": 120, // 节点坐标 距离顶部
"nodeStyle": { /* 非必要 节点样式 */
"border": "2px solid red"
},
"iconStyle": { /* 非必要 节点icon样式 */
"background": "red"
},
"iconClassName": "el-icon-link", /* 非必要 节点icon的类名 */
"nameDescribe": "气泡内容", /* 非必要 气泡内容 */
},
```
- 节点关系自定义

```
// 一份完整的节点关系包括以下几个内容
"edges": [
{
"dst_input_idx": 0, // 目标节点出口的下标
"dst_node_id": 2, // 目标节点的id
"id": 1, // 节点的id
"src_node_id": 1, // 来源节点的id
"src_output_idx": 0 // 来源节点的入口下标
"style": { } /* 非必要 自定义节点样式 */
}
],
```
很多内容致敬了阿里PAI的早期样式
如果使用当中有任何问题或者实现不了的需求,
可以qq群艾特我.793841737.
## 更新说明 2020年10月17日15:44:49
增加了删除按钮的取消范围
增加了path的可选范围
正在做自动布局
## 更新说明 2020年04月29日17:30:15
增加新示范页, 可以进行节点拖拽添加,及单节点表单信息编辑功能,以帮助新用户快速上手.
## 更新说明 2019-12-0Excerpt of 5,130 characters
Read on GitHubWould you bet a product on this? Bounded 0–100 and slow moving.
Not classified yet. Classification runs as part of npm run ingest.