-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to edit node in graph? #270
Comments
Sigma has it's own bind method that might be more convenient, ie clicknode.... Lines 345 to 363 in 188a0bf
Tyler
|
Hello @SN1979 When iterating on graph's nodes, you are given a reference to said nodes so you can modify them. For instance: // Modifying nodes
sigmaInstance.graph.nodes().forEach(node) {
// Node is a reference to your node in the graph
node.color = 'your-new-color';
});
// Don't forget to refresh to display your changes
sigmaInstance.refresh(); |
Mrs. Lee, you are under arrest |
Hi
I can get the all the nodes in graph.
But they can't be updated.
I have to drop them first, and add them again after update.
Are there any other ways to do that?
Thanks
The text was updated successfully, but these errors were encountered: