Skip to content

Commit 2728402

Browse files
committed
commented tests
1 parent 9b868d0 commit 2728402

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/network_analysis/network_properties.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,8 @@ end
328328

329329
### STRONG LINKAGE CLASS TESTS
330330

331+
332+
# a) Checks that strong/terminal linkage classes are correctly found. Should identify the (A, B+C) linkage class as non-terminal, since B + C produces D
331333
let
332334
rn = @reaction_network begin
333335
(k1, k2), A <--> B + C
@@ -347,6 +349,7 @@ let
347349
@test issubset([[3,4,5], [6,7]], tslcs)
348350
end
349351

352+
# b) Makes the D + E --> G reaction irreversible. Thus, (D+E) becomes a non-terminal linkage class. Checks whether correctly identifies both (A, B+C) and (D+E) as non-terminal
350353
let
351354
rn = @reaction_network begin
352355
(k1, k2), A <--> B + C
@@ -366,6 +369,7 @@ let
366369
@test issubset([[3,4,5], [7]], tslcs)
367370
end
368371

372+
# From a), makes the B + C <--> D reaction reversible. Thus, the non-terminal (A, B+C) linkage class gets absorbed into the terminal (A, B+C, D, E, 2F) linkage class, and the terminal linkage classes and strong linkage classes coincide.
369373
let
370374
rn = @reaction_network begin
371375
(k1, k2), A <--> B + C
@@ -385,6 +389,7 @@ let
385389
@test issubset([[1,2,3,4,5], [6,7]], tslcs)
386390
end
387391

392+
# Simple test for strong and terminal linkage classes
388393
let
389394
rn = @reaction_network begin
390395
(k1, k2), A <--> 2B

0 commit comments

Comments
 (0)