这是我的代码:
this.network = new vis.Network(container, data, {
layout: {
hierarchical: {
direction: 'UD',
sortMethod: 'directed',
}
},
physics: {
hierarchicalRepulsion: {
avoidOverlap: 1,
}
}
});
结果是:
为什么中心的这些边缘这么长?
节点和边缘:https ://pastebin.com/7MMszDuC
PS vis-network 7.5.2