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
Return the terminal strongly connected components of a reaction network's incidence graph (i.e. sub-groups of reaction complexes that are 1) strongly connected and 2) every reaction in the component produces a complex in the component).
381
+
Return the terminal strongly connected components of a reaction network's incidence graph (i.e. sub-groups of reaction complexes that are 1) strongly connected and 2) every outgoing reaction from a complex in the component produces a complex also in the component).
@@ -391,11 +391,16 @@ function terminallinkageclasses(rn::ReactionSystem)
391
391
nps.terminallinkageclasses
392
392
end
393
393
394
+
395
+
# Check whether a given linkage class in a reaction network is terminal, i.e. all outgoing reactions from complexes in the linkage class produce a complex also in hte linkage class
# Find the index of the reactant complex for a given reaction
398
401
s =findfirst(==(-1), @view imat[:, r])
402
+
403
+
# If the reactant complex is in the linkage class, check whether the product complex is also in the linkage class. If any of them are not, return false.
0 commit comments