#NEWLINE# def setInDegSequence( self , inDegSequence ) : #NEWLINE# #INDENT# '\n        Set the (in)degree sequence of this object.\n\n        :param inDegSequence: a vector of degrees for each vertex in the graph.\n        :type inDegSequence: :class:`numpy.ndarray`\n        ' #NEWLINE# Parameter . checkClass ( inDegSequence , numpy . ndarray ) #NEWLINE# if ( inDegSequence . ndim != 1 ) : #NEWLINE# #INDENT# raise ValueError ( 'Degree sequence must be one dimensional' ) #NEWLINE# #UNINDENT# if ( inDegSequence . shape [ 0 ] != self . outDegSequence . shape [ 0 ] ) : #NEWLINE# #INDENT# raise ValueError ( 'In-degree sequence must be same length as out-degree sequence' ) #NEWLINE# #UNINDENT# Parameter . checkList ( inDegSequence , Parameter . checkInt , [ 0 , inDegSequence . shape [ 0 ] ] ) #NEWLINE# self . inDegSequence = inDegSequence