-
Notifications
You must be signed in to change notification settings - Fork 41
Open
Description
Can someone point me to a way to force sigma to refresh with a new layout? It seems that after first layout can not get sigma to recalculate node positions and relayout.
I tried doing something like:
const forcePositions = forceAtlas2(graph, { iterations: 50 });
graph.forEachNode((node, attributes) => {
graph.updateNodeAttribute(node, 'x', () => forcePositions[node].x);
graph.updateNodeAttribute(node, 'y', () => forcePositions[node].y);
});
sigma.refresh();
node x and y are updated but sigma remains the same, even with sigma.refresh();
Metadata
Metadata
Assignees
Labels
No labels