def getNumDirEdges(self):
        return self.W.nonzero()[0].shape[0]
:returns: the number of edges, taking this graph as a directed graph.
dataset/ETHPy150Open charanpald/APGL/apgl/graph/SparseGraph.py/SparseGraph.getNumDirEdges