We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
isdigraphical
1 parent 7c4edc8 commit 77e962dCopy full SHA for 77e962d
test/utilities.jl
@@ -2,4 +2,6 @@
2
const A = reshape(rand(1:9, 1000), 10, 10, 10)
3
carts_idxs = CartesianIndices(A)
4
vec_idxs = MultilayerGraphs.cartIndexTovecIndex.(carts_idxs, Ref(size(A)))
5
-@test all(getindex.(Ref(A), carts_idxs) .== getindex.(Ref(A), vec_idxs))
+@test all(getindex.(Ref(A), carts_idxs) .== getindex.(Ref(A), vec_idxs))
6
+directed_graphs = [SimpleDiGraph(10,50) for i in 1:5]
7
+@test all(MultilayerGraphs.isdigraphical.(indegree.(directed_graphs), outdegree.(directed_graphs)))
0 commit comments