Merge branch 'webui-node-expansion' into feat-node-expand

This commit is contained in:
yangdx
2025-03-17 22:54:58 +08:00

View File

@@ -578,6 +578,9 @@ const useLightrangeGraph = () => {
if (sigmaGraph.hasEdge(newEdge.source, newEdge.target)) {
continue;
}
if (sigmaGraph.hasEdge(newEdge.target, newEdge.source)) {
continue;
}
// Add the edge to the sigma graph
newEdge.dynamicId = sigmaGraph.addDirectedEdge(newEdge.source, newEdge.target, {