Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
gdalle authored May 4, 2024
1 parent b7438ac commit d4206ae
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/linalg/nonbacktracking.jl
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,8 @@ using SparseArrays
0 0 0 0 0 0 1 0
]
egs = Edge.([(1, 2), (2, 3), (3, 4), (4, 5), (2, 1), (3, 2), (4, 3), (5, 4)])
indices = getindex.(Ref(edgemap), egs)
@test typeof(B) <: SparseMatrixCSC
@test all(B[indices, indices] .== B_)
@test B == B_

# Case: simple directed
dg = SimpleDiGraph(5)
Expand Down Expand Up @@ -55,7 +54,6 @@ using SparseArrays
0 0 0 0 1 0
]
egs = Edge.([(1, 2), (1, 3), (2, 3), (3, 4), (3, 5), (4, 3)])
indices = getindex.(Ref(edgemap), egs)
@test typeof(B) <: SparseMatrixCSC
@test all(B[indices, indices] .== B_)
@test B == B_
end

0 comments on commit d4206ae

Please sign in to comment.