Skip to content

Commit

Permalink
Update ext/CatalystGraphMakieExtension/rn_graph_plot.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Sam Isaacson <[email protected]>
  • Loading branch information
vyudu and isaacsas authored Nov 27, 2024
1 parent f607e44 commit 5ec4511
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/CatalystGraphMakieExtension/rn_graph_plot.jl
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ function gen_distances(g::MultiGraphWrap; inc = 0.4)
edgelist = edges(g)
distances = zeros(length(edgelist))
edgedict = Dict(edgelist[1] => [1])
for (i, e) in enumerate(edgelist[2:end])
for (i, e) in enumerate(@view edgelist[2:end])
if edgelist[i] != edgelist[i+1]
edgedict[e] = [i+1]
else
Expand Down

0 comments on commit 5ec4511

Please sign in to comment.