[Bug] 文档存在错误
- Dominant language
- TypeScript
- Stars
- 67.3k
- Forks
- 19.8k
- Avg merge
- 11d 14h
- Merged PRs (30d)
- 8
Description
### Version
5.2.2
### Link to Minimal Reproduction
不需要
### Steps to Reproduce


graph类型的link配置,文档中表示是使用nodes中的name作为依据,但是实际上是使用字符串的id字段,如果id不是字符串,则使用数组的索引,希望修复文档或者修复代码使其表现一致。
### Current Behavior


graph类型的link配置,文档中表示是使用nodes中的name作为依据,但是实际上是使用字符串的id字段,如果id不是字符串,则使用数组的索引,希望修复文档或者修复代码使其表现一致。
### Expected Behavior
两种方案
1. 修复文档,将name字段改为id,使得文档与实际表现一致
2. 修复代码,将id改为name,使其与文档一致
### Environment
```markdown
- OS:windows10
- Browser:chrome
- Framework:electron-vite
```
### Any additional comments?
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.