Skip to content

Commit

Permalink
fix docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
vyudu committed Jul 11, 2024
1 parent f1d1b9b commit 6571e84
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/network_analysis.jl
Original file line number Diff line number Diff line change
Expand Up @@ -260,17 +260,12 @@ end
Construct a directed simple graph where nodes correspond to reaction complexes and directed
edges to reactions converting between two complexes.
Notes:
- Requires the `incidencemat` to already be cached in `rn` by a previous call to
`reactioncomplexes`.
For example,
```julia
sir = @reaction_network SIR begin
β, S + I --> 2I
ν, I --> R
end
complexes,incidencemat = reactioncomplexes(sir)
incidencematgraph(sir)
```
"""
Expand Down Expand Up @@ -498,8 +493,7 @@ isweaklyreversible(rn, subnets)
function isweaklyreversible(rn::ReactionSystem, subnets)
nps = get_networkproperties(rn)
isempty(nps.incidencemat) && reactioncomplexes(rn)
imat = nps.incidencemat
sparseig = issparse(imat)
sparseig = issparse(nps.incidencemat)

for subnet in subnets
subnps = get_networkproperties(subnet)
Expand Down

0 comments on commit 6571e84

Please sign in to comment.