def laplacianMatrix(self, outDegree=True, sparse=False):
        A = self.nativeAdjacencyMatrix()
        L = self.weightMatrixType()((self.getNumVertices(), self.getNumVertices()))

        if outDegree:
            L.setdiag(self.outDegreeSequence())
        else:
            L.setdiag(self.inDegreeSequence())

        L = L - A
        
        if sparse == True:
            return L
        else:
            return L.toarray()
Return the Laplacian matrix of this graph, which is defined as L_{ii} = deg(i)
dataset/ETHPy150Open charanpald/APGL/apgl/graph/SparseGraph.py/SparseGraph.laplacianMatrix