#NEWLINE# def nativeAdjacencyMatrix( self ) : #NEWLINE# #INDENT# '\n        Return the adjacency matrix in sparse format.\n        ' #NEWLINE# A = spmatrix . ll_mat ( self . vList . getNumVertices ( ) , self . vList . getNumVertices ( ) ) #NEWLINE# nonzeros = PySparseUtils . nonzero ( self . W ) #NEWLINE# A . put ( 1 , nonzeros [ 0 ] , nonzeros [ 1 ] ) #NEWLINE# return nonzeros