Skip to content

Commit 77e962d

Browse files
InterdisciplinaryPhysicsTeamClaudMorpitmonticone
committed
Test isdigraphical
Co-Authored-By: Claudio Moroni <[email protected]> Co-Authored-By: Pietro Monticone <[email protected]>
1 parent 7c4edc8 commit 77e962d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/utilities.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@
22
const A = reshape(rand(1:9, 1000), 10, 10, 10)
33
carts_idxs = CartesianIndices(A)
44
vec_idxs = MultilayerGraphs.cartIndexTovecIndex.(carts_idxs, Ref(size(A)))
5-
@test all(getindex.(Ref(A), carts_idxs) .== getindex.(Ref(A), vec_idxs))
5+
@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

Comments
 (0)