Skip to content

Commit 2d36ed2

Browse files
vyduvyudu
authored andcommitted
Added tests for complex balancing
1 parent 3b583c9 commit 2d36ed2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/network_analysis/network_properties.jl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ let
4040
@test isweaklyreversible(MAPK, subnetworks(MAPK)) == false
4141
cls = conservationlaws(MAPK)
4242
@test Catalyst.get_networkproperties(MAPK).rank == 15
43+
44+
rates = rand(numparams(MAPK))
45+
@test Catalyst.complexbalanced(MAPK, rates) == false
4346
# i=0;
4447
# for lcs in linkageclasses(MAPK)
4548
# i=i+1
@@ -77,6 +80,9 @@ let
7780
@test isweaklyreversible(rn2, subnetworks(rn2)) == false
7881
cls = conservationlaws(rn2)
7982
@test Catalyst.get_networkproperties(rn2).rank == 6
83+
84+
rates = rand(numparams(rn2))
85+
@test Catalyst.complexbalanced(rn2, rates) == false
8086
# i=0;
8187
# for lcs in linkageclasses(rn2)
8288
# i=i+1
@@ -117,6 +123,9 @@ let
117123
@test isweaklyreversible(rn3, subnetworks(rn3)) == false
118124
cls = conservationlaws(rn3)
119125
@test Catalyst.get_networkproperties(rn3).rank == 10
126+
127+
rates = rand(numparams(rn3))
128+
@test Catalyst.complexbalanced(rn3, rates) == false
120129
# i=0;
121130
# for lcs in linkageclasses(rn3)
122131
# i=i+1

0 commit comments

Comments
 (0)