Input generation for Graph Laplacian