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 15, 2024
1 parent 91abcd1 commit f9d01a3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ext/CatalystGraphMakieExtension/rn_graph_plot.jl
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,11 @@ function plot_complex_graph(rn::ReactionSystem; interactive = false)
nodelabels = complexlabels(rn)
edgelabels = [repr(rx.rate) for rx in rxs]

deps = Set()
for (i, rx) in enumerate(rxs)
deps = get_variables(rx.rate, specs)
if deps != Any[]
edgecolors[i] = :red
end
empty!(deps)
get_variables!(deps, rx.rate, specs)
(!isempty(deps)) && (edgecolors[i] = :red)
end

f, ax, p = graphplot(img;
Expand Down

0 comments on commit f9d01a3

Please sign in to comment.