Skip to content

Commit 366bdb8

Browse files
cleanup
1 parent 11cc63c commit 366bdb8

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

GNNGraphs/src/transform.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,9 @@ end
148148
"""
149149
coalesce(g::GNNGraph; aggr=+)
150150
151-
Return a new GNNGraph where all multiple edges between the same pair of nodes are merged (using aggr for edge weights and features), and the edge indices are sorted lexicographically (by target, then by source).
151+
Return a new GNNGraph where all multiple edges between the same pair of nodes are merged
152+
(using aggr for edge weights and features),
153+
and the edge indices are sorted lexicographically (by target, then by source).
152154
This method is only applicable to graphs of type `:coo`.
153155
154156
`aggr` can take value `+`,`min`, `max` or `mean`.
@@ -469,7 +471,7 @@ GNNGraph:
469471
e = 7-element Vector{Float64}
470472
471473
julia> edge_index(g2)
472-
([1, 2, 2, 3, 3, 4, 4], [2, 1, 3, 2, 4, 3, 4])
474+
([2, 1, 3, 2, 4, 3, 4], [1, 2, 2, 3, 3, 4, 4])
473475
474476
julia> get_edge_weight(g2)
475477
7-element Vector{Float64}:

GraphNeuralNetworks/test/Project.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ GNNlib = "a6a84749-d869-43f8-aacc-be26a1996e48"
88
GraphNeuralNetworks = "cffab07f-9bc2-4db1-8861-388f63bf7694"
99
Graphs = "86223c79-3864-5bf0-83f7-82e725a168b6"
1010
MLDatasets = "eb30cadb-4394-5ae3-aed4-317e484a6458"
11-
Metal = "dde4c033-4e86-420c-a63e-0dd931031962"
1211
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
1312
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
1413
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"

0 commit comments

Comments
 (0)