Skip to content
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

remove_multi_edges bug fix. #4961

Open
wants to merge 2 commits into
base: branch-25.04
Choose a base branch
from

Conversation

seunghwak
Copy link
Contributor

remove_multi_edges functions takes keep_min_edge_value.

This is set to true when removing multi-edges in a symmetric edge list (which will be used to create an undirected graph) to ensure that the edge list remain symmetric (including edge values).

The existing implementation doesn't work properly if # edge properties > 1.

The existing implementation sorts (src, dst, edge index) and keeps the edge with the minimum index among the multi-edges between src & dst. This doesn't guarantee that the same (src, dst, edge value) will be selected in both directions.

This PR fixes this bug.

@seunghwak seunghwak requested a review from a team as a code owner March 7, 2025 23:30
@seunghwak seunghwak added bug Something isn't working non-breaking Non-breaking change and removed cuGraph labels Mar 7, 2025
@seunghwak seunghwak self-assigned this Mar 7, 2025
@seunghwak seunghwak added this to the 25.04 milestone Mar 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working non-breaking Non-breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant