Skip to content

Commit 208afc8

Browse files
committed
Fix failing test
1 parent 2c35cf2 commit 208afc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/overrides.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ adjacency_matrix(g::StaticGraph{I,U}, T::DataType; dir = :out!) where I<:Integer
66

77
function adjacency_matrix(g::StaticDiGraph{I,U}, T::DataType; dir = :out) where I<:Integer where U<:Integer
88
if dir == :in
9-
return SparseMatrixCSC{T,I}(nv(g), nv(g), g.f_ind, g.f_vec, ones(T, ne(g)*2))
9+
return SparseMatrixCSC{T,I}(nv(g), nv(g), g.f_ind, g.f_vec, ones(T, ne(g)))
1010
end
1111
z = SparseMatrixCSC{T,I}(nv(g), nv(g), g.b_ind, g.b_vec, ones(T, ne(g)))
1212
dir != :out && @warn("direction `$dir` not defined for adjacency matrices on StaticGraphs; defaulting to `out`")

0 commit comments

Comments
 (0)