File tree Expand file tree Collapse file tree 2 files changed +9
-14
lines changed
ext/CatalystGraphMakieExtension Expand file tree Collapse file tree 2 files changed +9
-14
lines changed Original file line number Diff line number Diff line change @@ -59,20 +59,12 @@ function gen_distances(g::SRGraphWrap; inc = 0.2)
59
59
distances
60
60
end
61
61
62
- """
63
- plot_petrinet(rn::ReactionSystem)
64
-
65
- See the documentation for [`plot_network`](@ref).
66
- """
67
- function Catalyst. plot_petrinet (rn:: ReactionSystem )
68
- plot_network (rn)
69
- end
70
-
71
62
"""
72
63
plot_network(rn::ReactionSystem; interactive=false)
73
64
74
- Converts a [`ReactionSystem`](@ref) into a GraphMakie plot of the species reaction graph.
75
- Reactions correspond to small green circles, and species to blue circles.
65
+ Converts a [`ReactionSystem`](@ref) into a GraphMakie plot of the species reaction graph
66
+ (or Petri net representation). Reactions correspond to small green circles, and
67
+ species to blue circles.
76
68
77
69
Notes:
78
70
- Black arrows from species to reactions indicate reactants, and are labelled
Original file line number Diff line number Diff line change 319
319
species_reaction_graph(rn::ReactionSystem)
320
320
321
321
Construct a directed simple graph where there are two types of nodes: species and reactions.
322
- An edge from a species *s* to reaction *r* indicates that *s* is a reactant for *r*, and an edge from a reaction
323
- r to a species s indicates that *s* is a product of *r*. By default, the species vertices are listed
324
- first, so the first *n* indices correspond to species nodes.
322
+ An edge from a species *s* to reaction *r* indicates that *s* is a reactant for *r*, and
323
+ an edge from a reaction *r* to a species *s* indicates that *s* is a product of *r*. By
324
+ default, the species vertices are listed first, so the first *n* indices correspond to
325
+ species nodes.
326
+
327
+ Note: this is equivalent to the Petri net representation of a chemical reaction network.
325
328
326
329
For example,
327
330
```julia
You can’t perform that action at this time.
0 commit comments