#NEWLINE# def test_P3( self ) : #NEWLINE# #INDENT# G = nx . path_graph ( 3 ) #NEWLINE# G . node [ 0 ] [ 'community' ] = 0 #NEWLINE# G . node [ 1 ] [ 'community' ] = 1 #NEWLINE# G . node [ 2 ] [ 'community' ] = 0 #NEWLINE# self . test ( self , [ ( 0 , 2 ) ] , [ ( 0 , 2 , 0 ) ] )