This commit is contained in:
qumeng039@126.com 2025-08-29 20:42:43 +08:00
parent 4f1b893cd6
commit d280a0e1b4
2 changed files with 0 additions and 3 deletions

BIN
dist.zip

Binary file not shown.

View File

@ -91,10 +91,8 @@ const initChart = () => {
// //
const links = [] const links = []
const newSet = new Set()
nodes.forEach((communityNode) => { nodes.forEach((communityNode) => {
communityNode.neighbors.forEach((communityNei) => { communityNode.neighbors.forEach((communityNei) => {
if (newSet.has(communityNei.id)) return
links.push({ links.push({
source: communityNode.id, source: communityNode.id,
target: communityNei.id, target: communityNei.id,
@ -107,7 +105,6 @@ const initChart = () => {
} }
}) })
}) })
newSet.add(communityNode.id) // id
}) })
// links // links
originalLinks = JSON.parse(JSON.stringify(links)) originalLinks = JSON.parse(JSON.stringify(links))