The Laplacian Matrices of Graphs: Algorithms and Applications