#NEWLINE# def test_all_pairs_shortest_path( self ) : #NEWLINE# #INDENT# p = nx . all_pairs_shortest_path ( p . cycle ) #NEWLINE# assert_equal ( p [ 0 ] [ 3 ] , [ 0 , 1 , 2 , 3 ] ) #NEWLINE# p = nx . all_pairs_shortest_path ( self . grid ) #NEWLINE# assert_equal ( p [ 1 ] [ 12 ] , [ 1 , 2 , 3 , 4 , 8 , 12 ] )