Skip to content

Commit 6627760

Browse files
committed
fixed reset
1 parent ed8fda6 commit 6627760

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/reactionsystem.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ function reset!(nps::NetworkProperties{I, V}) where {I, V}
119119
nps.isempty && return
120120
nps.netstoichmat = Matrix{Int}(undef, 0, 0)
121121
nps.conservationmat = Matrix{I}(undef, 0, 0)
122+
nps.cyclemat = Matrix{Int}(undef, 0, 0)
122123
empty!(nps.col_order)
123124
nps.rank = 0
124125
nps.nullity = 0
@@ -134,6 +135,8 @@ function reset!(nps::NetworkProperties{I, V}) where {I, V}
134135
nps.complexoutgoingmat = Matrix{Int}(undef, 0, 0)
135136
nps.incidencegraph = Graphs.DiGraph()
136137
empty!(nps.linkageclasses)
138+
empty!(nps.stronglinkageclasses)
139+
empty!(nps.terminallinkageclasses)
137140
nps.deficiency = 0
138141

139142
# this needs to be last due to setproperty! setting it to false

0 commit comments

Comments
 (0)