Skip to content

Commit 2dec808

Browse files
committed
Revert back to old sort_edge_index function
1 parent f02209e commit 2dec808

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

GNNGraphs/src/utils.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ are sorted first according to the `ui` and then according to `vi`.
4141
function sort_edge_index(u, v)
4242
uv = collect(zip(u, v))
4343
p = sortperm(uv) # isless lexicographically defined for tuples
44-
return (u = u[p], v = v[p], perm = p)
44+
return u[p], v[p]
4545
end
4646

4747

0 commit comments

Comments
 (0)