#NEWLINE# def add_new_child( self , str_ind , substr_start , substr_end ) : #NEWLINE# #INDENT# '\n            Creates and returns new child node.\n            str_ind, substr_start, substr_end and parameters describe\n            the substring that the new child should contain;\n            for the given strings_collection that will be\n            strings_collection[str_ind][substr_start:substr_end]\n            \n            ' #NEWLINE# child_node = AnnotatedSuffixTree . Node ( ) #NEWLINE# child_node . parent = self #NEWLINE# child_node . strings_collection = self . strings_collection #NEWLINE# child_node . _arc = ( str_ind , child_node , substr_end ) #NEWLINE# child_node . _e = self . _e #NEWLINE# self . children [ self . strings_collection [ str_ind ] [ substr_start ] ] = child_node #NEWLINE# return child_node