Added error logging for duplicate edges in rawGraph.

This commit is contained in:
yangdx
2025-03-18 09:51:53 +08:00
parent 217ffa9e05
commit 77c23a23e4
3 changed files with 4 additions and 2 deletions

View File

@@ -595,6 +595,8 @@ const useLightrangeGraph = () => {
rawGraph.edgeIdMap[newEdge.id] = rawGraph.edges.length - 1;
// Update dynamic edge map
rawGraph.edgeDynamicIdMap[newEdge.dynamicId] = rawGraph.edges.length - 1;
} else {
console.error('Edge already exists in rawGraph:', newEdge.id);
}
}