Skip to content

Commit bfdecd4

Browse files
committed
Fix retrieve_track! including the input ring
1 parent aa9be39 commit bfdecd4

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "PeriodicGraphs"
22
uuid = "18c5b727-b240-4874-878a-f2e242435bab"
33
authors = ["Lionel Zoubritzky [email protected]"]
4-
version = "0.10.0"
4+
version = "0.10.1"
55

66
[deps]
77
Graphs = "86223c79-3864-5bf0-83f7-82e725a168b6"

src/algorithms/rings.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1325,7 +1325,6 @@ function retrieve_track!(ret::Vector{Int32}, buffer::Vector{Int32}, gauss::Itera
13251325
track = sort!(first(gauss.track))
13261326
tracks = last(gauss.track)
13271327
empty!(ret)
1328-
push!(ret, length(gauss.rings))
13291328
while !isempty(track)
13301329
x = pop!(track)
13311330
push!(ret, x)

test/runtests.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -799,13 +799,13 @@ end
799799
notindependent, info = PeriodicGraphs.gaussian_elimination(gausstrack, [1, 4, 5, 7])
800800
@test notindependent
801801
@test PeriodicGraphs.gaussian_elimination!(gausstrack, [1, 4, 5, 7], notindependent, info)
802-
@test PeriodicGraphs.retrieve_track!(gausstrack) == Int32[5, 4, 1]
802+
@test PeriodicGraphs.retrieve_track!(gausstrack) == Int32[4, 1]
803803
@test !PeriodicGraphs.gaussian_elimination!(gausstrack, [3, 5, 6, 7])
804804
@test !PeriodicGraphs.gaussian_elimination!(gausstrack, [2, 3])
805805
@test !first(PeriodicGraphs.gaussian_elimination(gausstrack, [1, 2, 3]))
806806
@test !PeriodicGraphs.gaussian_elimination!(gausstrack, [1, 2, 3])
807807
@test PeriodicGraphs.gaussian_elimination!(gausstrack, [1, 2, 3])
808-
@test PeriodicGraphs.retrieve_track!(gausstrack) == Int32[9, 8]
808+
@test PeriodicGraphs.retrieve_track!(gausstrack) == Int32[8]
809809
@test gausstrack.shortcuts == Int32[4, 7, 1, 2, 6, 3, 8]
810810
@test length(gausstrack.rings) == 9
811811

0 commit comments

Comments
 (0)