#NEWLINE# def add_child( self , child , distance , mtree ) : #NEWLINE# #INDENT# assert ( child . data not in self . children ) #NEWLINE# self . children [ child . data ] = child #NEWLINE# assert ( self . data in self . children ) #NEWLINE# self . update_metrics ( child , distance )