add problem to calculate Laplacian matrix of simple graph.