#NEWLINE# def inDegreeSequence( self ) : #NEWLINE# #INDENT# '\n        Return a vector of the (in)degree sequence for each vertex.\n        ' #NEWLINE# A = self . nativeAdjacencyMatrix ( ) #NEWLINE# j = spmatrix . ll_mat ( self . vList . getNumVertices ( ) , 1 ) #NEWLINE# j [ : , 0 ] = 1 #NEWLINE# degrees = spmatrix . dot ( A , j ) #NEWLINE# degrees = PysparseMatrix ( matrix = degrees ) #NEWLINE# degrees = numpy . array ( degrees . getNumpyArray ( ) . ravel ( ) , numpy . int ) #NEWLINE# return degrees