Skip to content

Commit

Permalink
need to fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rbSparky committed Mar 17, 2024
1 parent dda020c commit d87b5c4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/GNNGraphs/transform.jl
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,8 @@ function remove_nodes(g::GNNGraph{<:COO_T}, nodes_to_remove::AbstractVector)
w = get_edge_weight(g)
edata = g.edata
ndata = g.ndata


#fix
edges_to_remove_s = findall(x -> nodes_to_remove[searchsortedlast(nodes_to_remove, x)] == x, s)
edges_to_remove_t = findall(x -> nodes_to_remove[searchsortedlast(nodes_to_remove, x)] == x, t)
edges_to_remove = union(edges_to_remove_s, edges_to_remove_t)
Expand Down

0 comments on commit d87b5c4

Please sign in to comment.