Skip to content

Commit a46a0c5

Browse files
committed
up
1 parent ef0635f commit a46a0c5

File tree

2 files changed

+9
-14
lines changed

2 files changed

+9
-14
lines changed

ext/CatalystGraphMakieExtension/rn_graph_plot.jl

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -59,20 +59,12 @@ function gen_distances(g::SRGraphWrap; inc = 0.2)
5959
distances
6060
end
6161

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-
7162
"""
7263
plot_network(rn::ReactionSystem; interactive=false)
7364
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.
7668
7769
Notes:
7870
- Black arrows from species to reactions indicate reactants, and are labelled

src/network_analysis.jl

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -319,9 +319,12 @@ end
319319
species_reaction_graph(rn::ReactionSystem)
320320
321321
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.
325328
326329
For example,
327330
```julia

0 commit comments

Comments
 (0)