We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 517b88a commit 8b27724Copy full SHA for 8b27724
src/gnngraph.jl
@@ -338,10 +338,7 @@ defined as ``\hat{L} = \frac{2}{\lambda_{max}} L - I`` where ``L`` is the normal
338
"""
339
function scaled_laplacian(g::GNNGraph, T::DataType=Float32; dir=:out)
340
L = normalized_laplacian(g, T)
341
- if !issymmetric(L)
342
- @show norm(L - L')
343
- end
344
- # @assert issymmetric(L) "scaled_laplacian only works with symmetric matrices"
+ @assert issymmetric(L) "scaled_laplacian only works with symmetric matrices"
345
λmax = _eigmax(L)
346
return 2 / λmax * L - I
347
end
0 commit comments