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

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

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, {