Skip to content

Commit

Permalink
Update GNNGraphs/src/sampling.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Carlo Lucibello <[email protected]>
  • Loading branch information
askorupka and CarloLucibello authored Oct 6, 2024
1 parent 415d0df commit 7d8d285
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GNNGraphs/src/sampling.jl
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ function Graphs.induced_subgraph(graph::GNNGraph, nodes::Vector{Int})
end
for neighbor in neighbors
if neighbor in keys(node_map)
push!(source, node_map[node])
push!(target, node_map[neighbor])
push!(target, node_map[node])
push!(source, node_map[neighbor])
end
end
end
Expand Down

0 comments on commit 7d8d285

Please sign in to comment.