Skip to content

Commit a4e8b65

Browse files
committed
JuliaFormatter
1 parent c57ad8c commit a4e8b65

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/Catalyst.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@ export @reaction_network, @network_component, @reaction, @species
127127
include("network_analysis.jl")
128128
export reactioncomplexmap, reactioncomplexes, incidencemat
129129
export complexstoichmat
130-
export complexoutgoingmat, incidencematgraph, linkageclasses, stronglinkageclasses, terminallinkageclasses, deficiency, subnetworks
130+
export complexoutgoingmat, incidencematgraph, linkageclasses, stronglinkageclasses,
131+
terminallinkageclasses, deficiency, subnetworks
131132
export linkagedeficiencies, isreversible, isweaklyreversible
132133
export conservationlaws, conservedquantities, conservedequations, conservationlaw_constants
133134

src/network_analysis.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ linkageclasses(incidencegraph) = Graphs.connected_components(incidencegraph)
365365
Return the strongly connected components of a reaction network's incidence graph (i.e. sub-groups of reaction complexes such that every complex is reachable from every other one in the sub-group).
366366
"""
367367

368-
function stronglinkageclasses(rn::ReactionSystem)
368+
function stronglinkageclasses(rn::ReactionSystem)
369369
nps = get_networkproperties(rn)
370370
if isempty(nps.stronglinkageclasses)
371371
nps.stronglinkageclasses = stronglinkageclasses(incidencematgraph(rn))
@@ -381,17 +381,17 @@ stronglinkageclasses(incidencegraph) = Graphs.strongly_connected_components(inci
381381
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).
382382
"""
383383

384-
function terminallinkageclasses(rn::ReactionSystem)
384+
function terminallinkageclasses(rn::ReactionSystem)
385385
nps = get_networkproperties(rn)
386386
if isempty(nps.terminallinkageclasses)
387387
slcs = stronglinkageclasses(rn)
388-
tslcs = filter(lc->isterminal(lc, rn), slcs)
388+
tslcs = filter(lc -> isterminal(lc, rn), slcs)
389389
nps.terminallinkageclasses = tslcs
390390
end
391391
nps.terminallinkageclasses
392392
end
393393

394-
function isterminal(lc::Vector, rn::ReactionSystem)
394+
function isterminal(lc::Vector, rn::ReactionSystem)
395395
imat = incidencemat(rn)
396396

397397
for r in 1:size(imat, 2)

0 commit comments

Comments
 (0)