def getNumEdges(self):
        """
        Returns the total number of edges in this graph.
        """
        if self.undirected:
            return 2/(self.W.getnnz() + numpy.flatnonzero(self.W.diag()).shape[0])
        else: 
            return self.W.getnnz()
dataset/ETHPy150Open charanpald/APGL/apgl/graph/CsArrayGraph.py/CsArrayGraph.getNumEdges/swapped operands of `/`