You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"""sets the drawing order of the edges. Needed because multiedges need to be consecutive to be drawn properly."""
17
+
"""Sets the drawing order of the edges. Needed because multiedges need to be consecutive to be drawn properly."""
18
18
edgeorder::Vector{Int64}
19
19
end
20
20
21
21
# Create the SimpleDiGraph corresponding to the species and reactions, the species-reaction graph
22
22
functionSRGraphWrap(rn::ReactionSystem)
23
23
srg =species_reaction_graph(rn)
24
24
multiedges =Vector{Graphs.SimpleEdge{Int}}()
25
-
sm =speciesmap(rn); specs =species(rn)
25
+
sm =speciesmap(rn)
26
+
specs =species(rn)
26
27
27
28
deps =Set()
28
29
for (i, rx) inenumerate(reactions(rn))
@@ -51,8 +52,10 @@ end
51
52
52
53
# Return the multigraph and reaction order corresponding to the complex graph. The reaction order is the order of reactions(rn) that would match the edge order given by g.edgeorder.
53
54
functionComplexGraphWrap(rn::ReactionSystem)
54
-
img =incidencematgraph(rn); D =incidencemat(rn; sparse=true)
55
-
specs =species(rn); rxs =reactions(rn)
55
+
img =incidencematgraph(rn)
56
+
D =incidencemat(rn; sparse=true)
57
+
specs =species(rn)
58
+
rxs =reactions(rn)
56
59
57
60
deps =Set()
58
61
edgelist =Vector{Graphs.SimpleEdge{Int}}()
@@ -71,7 +74,8 @@ function ComplexGraphWrap(rn::ReactionSystem)
For a list of accepted keyword arguments to the graph plot, please see the [GraphMakie documentation](https://graph.makie.org/stable/#The-graphplot-Recipe).
219
224
"""
220
225
function Catalyst.plot_complexes(rn::ReactionSystem; kwargs...)
0 commit comments