#NEWLINE# def test_rank( self ) : #NEWLINE# #INDENT# gr = testlib . new_uniform_hypergraph ( 3 ) #NEWLINE# assert ( 3 == gr . rank ( ) ) #NEWLINE# gr = testlib . new_hypergraph ( ) #NEWLINE# num = max ( [ len ( gr . links ( e ) ) for e in gr . hyperedges ( ) ] ) #NEWLINE# assert ( num == gr . rank ( ) )