Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
more interesting README graph
  • Loading branch information
isaacsas committed Aug 20, 2021
commit edcc5d588cf9e076209380027d13b5b5e21da5a4
22 changes: 13 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,19 @@ reaction system functionality that was previously in ModelingToolkit (i.e.
*1.* Network representations for the reaction complexes of a system along with
associated graph functionality:
```julia
sir = @reaction_network begin
β, S + I --> 2I
ν, I --> R
end β ν
smap = speciesmap(sir)
rcs,B = reactioncomplexes(sir; smap=smap)
Z = complexstoichmat(sir; rcs=rcs)
Δ = complexoutgoingmat(sir; B=B)
complexgraph(sir; complexdata=(rcs,B))
rn = @reaction_network begin
k₁, 2A --> B
k₂, A --> C
k₃, C --> D
k₄, B + D --> E
k₅, B --> E
k₆, D --> C
end k₁ k₂ k₃ k₄ k₅ k₆
smap = speciesmap(rn)
rcs,B = reactioncomplexes(rn; smap=smap)
Z = complexstoichmat(rn; rcs=rcs)
Δ = complexoutgoingmat(rn; B=B)
complexgraph(rn; complexdata=(rcs,B))
```
which gives

Expand Down