-
-
Notifications
You must be signed in to change notification settings - Fork 368
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
could many edges between the two nodes be clustered to one edge? #1127
Comments
I manually implemented this recently (code below, I'm extremely new, so there is undoubtedly room for improvement). But basically what it does it take in some nodes, gets all the connected nodes, gets the edges for each node in a node pair and intersects the edges to get the ones common to both. If it is greater than the limit it hides the intersected edges and creates a custom clustered edge (separate from the automatic ones normal clustering creates). Then I have a network event where on click the process is run in sort of reverse to unhide all the hidden edges and then delete the clustered edge. My specific implementation runs only when I'm unclustering a clustered node, but the general principles can be adapted to fit your specific case. I agree though that this would be a great feature to implement natively if at all possible.
|
Hi, I need some help, in my scenario, there are many edges between two nodes, it doesnot seem great, i want to cluster these edges between the two nodes into ONE edge, the nodes do not change, could i achieve it ? thank you !
The text was updated successfully, but these errors were encountered: