-
-
Notifications
You must be signed in to change notification settings - Fork 86
Add Aggregate Edges Functionality #342
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
Conversation
✅ Deploy Preview for reagraph ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
amcdnl
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would like to see if there might be a more optimized way to aggregate the edges using graphology library. If not, all good just want to make sure we think about that.
| * @param labelType Label visibility type to determine if edge labels should be visible | ||
| * @returns Array of aggregated edges | ||
| */ | ||
| export const aggregateEdges = ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor but do we have any unit test coverage on this?
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Previously, edges used to stack on top of each other when there were more than three edges between two nodes.
What is the new behavior?
Now, we can pass an optional
aggregateEdgesprop to aggregate edges that connect the same pair of nodes in both directions.Screen.Recording.2025-07-07.at.7.03.10.PM.mov
Does this PR introduce a breaking change?
Other information