We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cbbe55a commit dff9ce1Copy full SHA for dff9ce1
Project.toml
@@ -1,7 +1,7 @@
1
name = "SQLiteGraph"
2
uuid = "de2defd0-d76e-464a-9029-1d71e199ae58"
3
authors = ["joshday <emailjoshday@gmail.com> and contributors"]
4
-version = "0.2.1"
+version = "0.2.2"
5
6
[deps]
7
DBInterface = "a10d1c49-ce27-4219-8d33-6db1a4562965"
test/runtests.jl
@@ -60,4 +60,14 @@ end
60
@test length(collect(db[:,:,"type"])) == 2
61
@test length(collect(db[:,:,:])) == 3
62
end
63
+ @testset "Adj Matrix" begin
64
+ m = SQLiteGraph.adjacency_matrix(db, "type")
65
+ @test sum(m) == 2
66
+ @test m[1, 2]
67
+ @test m[1, 3]
68
+
69
+ m2 = SQLiteGraph.adjacency_matrix(db, "type 2")
70
+ @test sum(m2) == 1
71
+ @test m2[1, 4]
72
+ end
73
0 commit comments