#NEWLINE# def test_path_node_boundary( self ) : #NEWLINE# #INDENT# 'Check node boundaries in path graph.' #NEWLINE# P10 = self . P10 #NEWLINE# assert_equal ( nx . node_boundary ( P10 , [ ] ) , [ ] ) #NEWLINE# assert_equal ( nx . node_boundary ( P10 , [ ] , [ ] ) , [ ] ) #NEWLINE# assert_equal ( nx . node_boundary ( P10 , [ 1 , 2 , 3 ] ) , [ 4 ] ) #NEWLINE# assert_equal ( sorted ( nx . node_boundary ( P10 , [ 4 , 5 , 6 ] ) ) , [ 3 , 7 ] ) #NEWLINE# assert_equal ( sorted ( nx . node_boundary ( self , [ 3 , 4 , 5 , 6 , 7 ] ) ) , [ 2 , 8 ] ) #NEWLINE# assert_equal ( nx . node_boundary ( P10 , [ 8 , 9 , 10 ] ) , [ 7 ] ) #NEWLINE# assert_equal ( sorted ( nx . node_boundary ( P10 , [ 4 , 5 , 6 ] , [ 9 , 10 ] ) ) , [ ] )