def calculate(graph): if nx.is_connected(graph): return Utils.Energy( inv_other.SignlessLaplacianMatrix.calculate(graph)) else: return 10**10
def calculate(graph): if nx.is_connected(graph): return Utils.Energy( inv_other.LaplacianDistanceMatrix.calculate(graph)) else: return 10**10
def calculate(graph): return Utils.Energy(inv_other.SeidelMatrix.calculate(graph))
def calculate(graph): return Utils.Energy( inv_other.NormalizedLaplacianMatrix.calculate(graph))
def calculate(graph): return Utils.Energy(inv_other.SignlessLaplacianMatrix.calculate(graph))
def calculate(graph): return Utils.Energy(inv_other.AdjacencyMatrix.calculate(graph))