We need to implement a laplacian kernel for coo inputs. The existing laplacian kernel is specifically tailored to csr inputs.
Here is what the algorithm should do:
- Calculate the nnz of resulting laplacian (and allocate output space accordingly).
- Compute row-wise degrees of input
- Insert the degree value in the diagonal
- Negate any off diagonal entries