Skip to content
This repository was archived by the owner on Jun 23, 2023. It is now read-only.

Commit c434425

Browse files
authored
Update leadingeigenvector.jl
1 parent 6c4deb5 commit c434425

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/modularity/leadingeigenvector.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ function leadingeigenvector(N::T) where {T <: AbstractUnipartiteNetwork}
3131
next = maximum(L)+1
3232
push!(todo, next)
3333
for (i,f) in enumerate(F.vectors[:,1])
34-
(f < 0) && (m[this[i]] = next)
34+
(f < 0) && (L[this[i]] = next)
3535
end
3636
end
3737
end
3838

3939
L = Dict(zip(species(N),L))
4040
return (N, L)
41-
end
41+
end

0 commit comments

Comments
 (0)