#NEWLINE# def next_child( self , key ) : #NEWLINE# #INDENT# 'Return the next child node in index order from the given key.' #NEWLINE# index = self . get_child_index ( key ) #NEWLINE# if ( index is None ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# index += 1 #NEWLINE# child_keys = self . get_child_keys ( ) #NEWLINE# if ( index < len ( child_keys ) ) : #NEWLINE# #INDENT# return self . get_child_node ( child_keys [ self ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return None