diff --git a/dist.zip b/dist.zip index e70cc01..1bbd01d 100644 Binary files a/dist.zip and b/dist.zip differ diff --git a/src/views/LinkPrediction/components/communityNode.vue b/src/views/LinkPrediction/components/communityNode.vue index 2882e47..bf5728e 100644 --- a/src/views/LinkPrediction/components/communityNode.vue +++ b/src/views/LinkPrediction/components/communityNode.vue @@ -91,10 +91,8 @@ const initChart = () => { //处理连边 const links = [] - const newSet = new Set() nodes.forEach((communityNode) => { communityNode.neighbors.forEach((communityNei) => { - if (newSet.has(communityNei.id)) return links.push({ source: communityNode.id, target: communityNei.id, @@ -107,7 +105,6 @@ const initChart = () => { } }) }) - newSet.add(communityNode.id) // 添加当前社团节点id到集合中,避免重复添加 }) // 保存初始 links,用于后续切换 originalLinks = JSON.parse(JSON.stringify(links))