Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Commit

Permalink
removed unused n_v in laplacian
Browse files Browse the repository at this point in the history
  • Loading branch information
sbromberger committed Feb 9, 2015
1 parent e2467c4 commit 3568195
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/linalg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ function adjacency_matrix(g::AbstractGraph)
end

function laplacian_matrix(g::Graph)
n_v = nv(g)
A = int(adjacency_matrix(g))
D = spdiagm(sum(A,2)[:])
return D - A
Expand Down

0 comments on commit 3568195

Please sign in to comment.