Skip to content

Commit 52ea74d

Browse files
[tudataset] wrong perm (#198)
close #197
1 parent dac5a8e commit 52ea74d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/datasets/graphs/tudataset.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ function TUDataset(name; dir=nothing)
9595
@assert issorted(graph_indicator)
9696
if !issorted(source)
9797
p = sortperm(source)
98-
source, target[p] = source[p], target[p]
98+
source, target = source[p], target[p]
9999
if edge_labels !== nothing
100100
edge_labels = edge_labels[p]
101101
end

0 commit comments

Comments
 (0)