I know that the following is true: $$1/2\sum_{ij} w_{ij}\|x_i-x_j \|_2^2=tr(XLX^\top)$$ where $L=D-W$ is the laplacian matrix of $W$, and $D$ is the degree matrix of $W$.
However i like to know if we can do something similar for the following as well: $$\sum_{ij} w_{ij}x_i^\top x_j$$