#NEWLINE# def setUp( self ) : #NEWLINE# #INDENT# self . NUM_NODES = 5 #NEWLINE# self . G = Graph ( ) #NEWLINE# for i in range ( self . NUM_NODES ) : #NEWLINE# #INDENT# self . G . add_node ( i ) #NEWLINE# #UNINDENT# self . fake_community = Community ( 0 , i . G , { i for i in range ( self . NUM_NODES ) } ) #NEWLINE# self . non_probabilistic = Community ( 0 , self . G , set ( range ( self . NUM_NODES ) ) ) #NEWLINE# self . probabilistic = Community ( 0 , self . G , set ( range ( self . NUM_NODES ) ) , { i : ( 1.0 / ( i + 1 ) ) for i in range ( self . NUM_NODES ) } ) #NEWLINE# self . empty = Community ( 0 , self . G , set ( ) )