Laplacian Positional Encoding (LPE) uses eigenvectors of the graph Laplacian as node features. The k smallest eigenvalues/eigenvectors capture global graph structure, useful for node classification and graph tasks.
PEi=[eigenvector1(i),eigenvector2(i),...,eigenvectork(i)]Implement:
laplacian_positional_encoding(adj, k=10)
Computes Laplacian PE for all nodes.
No results yet
Run your code to check it against the examples, or submit to run every test.