Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ jobs:
version:
- '1.11'
- '1.10'
- '1.6'
- 'pre'
os:
- ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ nauty_jll = "55c6dc9b-343a-50ca-8ff2-b71adb3733d5"
Graphs = "1.9"
LinearAlgebra = "1"
SHA = "0.7, 1"
julia = "1.6"
julia = "1.10"
nauty_jll = "2.8.9"
34 changes: 17 additions & 17 deletions test/jet.jl
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
using JET

@testset "JET" begin
test_package(NautyGraphs; target_modules=(NautyGraphs,))
test_package(NautyGraphs)

@test_opt target_modules=(NautyGraphs,) NautyGraph(10)
@test_opt target_modules=(NautyGraphs,) NautyDiGraph(10)
@test_opt NautyGraph(10)
@test_opt NautyDiGraph(10)

A = [1 0 1; 0 1 0; 1 1 1]
@test_opt target_modules=(NautyGraphs,) NautyDiGraph(A)
@test_opt NautyDiGraph(A)

g = NautyDiGraph(5; vertex_labels=1:5)
h = NautyGraph(g)
@test_opt target_modules=(NautyGraphs,) copy(g)
@test_opt target_modules=(NautyGraphs,) NautyDiGraph(g)
@test_opt copy(g)
@test_opt NautyDiGraph(g)

add_edge!(g, 2, 5)

@test_opt target_modules=(NautyGraphs,) add_edge!(g, 1, 2)
@test_opt target_modules=(NautyGraphs,) add_vertex!(g)
@test_opt target_modules=(NautyGraphs,) add_vertex!(g; vertex_label=5)
@test_opt target_modules=(NautyGraphs,) rem_vertex!(g, 3)
@test_opt target_modules=(NautyGraphs,) rem_edge!(g, 2, 5)
@test_opt target_modules=(NautyGraphs,) outneighbors(g, 1)
@test_opt target_modules=(NautyGraphs,) inneighbors(g, 1)
@test_opt target_modules=(NautyGraphs,) collect(edges(g))
@test_opt target_modules=(NautyGraphs,) blockdiag(g, h)
@test_opt add_edge!(g, 1, 2)
@test_opt add_vertex!(g)
@test_opt add_vertex!(g; vertex_label=5)
@test_opt rem_vertex!(g, 3)
@test_opt rem_edge!(g, 2, 5)
@test_opt outneighbors(g, 1)
@test_opt inneighbors(g, 1)
@test_opt collect(edges(g))
@test_opt blockdiag(g, h)

@test_opt target_modules=(NautyGraphs,) nauty(g)
@test_opt target_modules=(NautyGraphs,) canonize!(g)
@test_opt nauty(g)
@test_opt canonize!(g)
end
6 changes: 3 additions & 3 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ using Base.Threads
include("nauty.jl")
include("graphset.jl")
include("utils.jl")
VERSION >= v"1.9-" && include("interface.jl")
include("aqua.jl")
VERSION >= v"1.10" && include("jet.jl")
include("interface.jl")
VERSION >= v"1.11" && include("aqua.jl")
VERSION >= v"1.11" && include("jet.jl")
end
Loading