#NEWLINE# def getAllDirEdges( self ) : #NEWLINE# #INDENT# '\n        Returns the set of directed edges of the current graph as a matrix in which each\n        row corresponds to an edge. For an undirected graph, there is an edge from\n        v1 to v2 and from v2 to v1 if v2!=v1. \n\n        :returns: A matrix with 2 columns, and each row corresponding to an edge.\n        ' #NEWLINE# ( rows , cols ) = numpy . nonzero ( self . W ) #NEWLINE# edges = numpy . c_ [ ( rows , cols ) ] #NEWLINE# return self