You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function lmatrix(g::Graph)
n_v = nv(g)
A = int(adjacency_matrix(g)) # note that this creates a sparse matrix of integers
D = spdiagm(sum(A,2)[:])
return D - A
end
yields
ERROR sum: ErrorException("no method found for the specified argument types")
Signature: (Int64,Int64)
Also curiously, it doesn't warn that I'm not using n_v.
The text was updated successfully, but these errors were encountered:
yields
Also curiously, it doesn't warn that I'm not using
n_v
.The text was updated successfully, but these errors were encountered: