Skip to content

Commit

Permalink
Update src/GNNGraphs/convert.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Carlo Lucibello <carlo.lucibello@gmail.com>
  • Loading branch information
askorupka and CarloLucibello authored Jan 13, 2024
1 parent ee08b42 commit 47b4780
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GNNGraphs/convert.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ function to_coo(data::EDict; num_nodes = nothing, kws...)
graph = EDict{COO_T}()
_num_nodes = NDict{Int}()
num_edges = EDict{Int}()
if length(keys(data)) != 0
if !isempty(data)
for k in keys(data)
d = data[k]
@assert d isa Tuple
Expand Down

0 comments on commit 47b4780

Please sign in to comment.