g6/packages/site/docs/apis/data/EdgeModel.en.md

29 lines
891 B
Markdown
Raw Normal View History

2023-11-10 18:43:02 +08:00
---
title: EdgeModel
order: 7
2023-11-10 18:43:02 +08:00
---
EdgeModel is the internal edge data, which is obtained by [EdgeUserModel](./EdgeUserModel.en.md) through [transforms](./DataIntro.en.md#transforms).
2023-11-10 18:43:02 +08:00
<embed src="../../common/DataInnerModelTips.en.md"></embed>
2023-11-10 18:43:02 +08:00
<embed src="../../common/DataID.en.md"></embed>
2023-11-10 18:43:02 +08:00
## source <Badge type="error">Required</Badge>
2023-11-10 18:43:02 +08:00
**Type**: `string | number`
2023-11-10 18:43:02 +08:00
The ID of the source node of the edge, which should correspond to an item in `nodes`. Otherwise, the edge data will not be added to the graph.
## target <Badge type="error">Required</Badge>
2023-11-10 18:43:02 +08:00
**Type**: `string | number`
2023-11-10 18:43:02 +08:00
The ID of the target node of the edge, which should correspond to an item in nodes. Otherwise, the edge data will not be added to the graph.
## data <Badge type="error">Required</Badge>
2023-11-10 18:43:02 +08:00
<embed src="../../common/DataAttrTips.en.md"></embed>
2023-11-10 18:43:02 +08:00
<embed src="../../common/EdgeUserModel.en.md"></embed>