Skip to content

sorting bug fix - #326

Merged
vineetbansal merged 2 commits into
devfrom
vb/edge-attr-sort-fix
Jul 28, 2026
Merged

sorting bug fix#326
vineetbansal merged 2 commits into
devfrom
vb/edge-attr-sort-fix

Conversation

@vineetbansal

Copy link
Copy Markdown
Collaborator

This turned up randomly during other work and has to do with:

data.edge_index, sorted_idx = data.edge_index.sort_by("row")

The second return value is None if the edge index is already sorted, and we end up inadvertently adding a dimension if that's the case. This bug fix should fix it.

The first commit adds a failing test, and the next fixes the code and removes the xfail.

@vineetbansal
vineetbansal requested a review from M-Lampert July 27, 2026 20:15

@M-Lampert M-Lampert left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks for catching this. Feel free to merge.

@vineetbansal
vineetbansal merged commit eedda14 into dev Jul 28, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants