diff --git a/src/GraphProperties.jl b/src/GraphProperties.jl index eee8b99..bbc1f78 100644 --- a/src/GraphProperties.jl +++ b/src/GraphProperties.jl @@ -29,7 +29,7 @@ struct PropertyComparison{ end let - properties_abstractvector = Tuple{Symbol, String}[ + properties_abstractvector_integer = Tuple{Symbol, String}[ (:DegreeSequence, "The *degree sequence* of an undirected graph."), ] properties_real = Tuple{Symbol, String}[ @@ -104,7 +104,7 @@ let (:GraphIsSplitGraph, "Is an undirected graph a split graph?"), ] for (typ, properties) ∈ ( - (AbstractVector, properties_abstractvector), + (AbstractVector{<:Integer}, properties_abstractvector_integer), (Real, properties_real), (Integer, properties_integer), (Bool, properties_bool), diff --git a/test/runtests.jl b/test/runtests.jl index 838a31a..a961354 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -8,7 +8,7 @@ using Test @test GraphIsChordal() isa GraphProperty{Bool} @test Arboricity() isa GraphProperty{Integer} @test FractionalChromaticNumber() isa GraphProperty{Real} - @test DegreeSequence() isa GraphProperty{AbstractVector} + @test DegreeSequence() isa GraphProperty{AbstractVector{<:Integer}} end end