
    {Ti                     h    d Z ddlmZ  G d dej                        Z G d dej                        Zy)zClasses corresponding to Newick trees, also used for Nexus trees.

See classes in ``Bio.Nexus``: Trees.Tree, Trees.NodeData, and Nodes.Chain.
    )BaseTreec                       e Zd ZdZddZy)TreezNewick Tree object.Nc                 r    t         j                  j                  | |xs
 t               |||       || _        y)z/Initialize parameters for a Newick tree object.)rootrootedidnameN)r   r   __init__Cladeweight)selfr   r   r	   r
   r   s         C/home/agent/.local/lib/python3.12/site-packages/Bio/Phylo/Newick.pyr   zTree.__init__   s3    tuwv"4 	 	
     )NFNNg      ?__name__
__module____qualname____doc__r    r   r   r   r      s
    r   r   c                       e Zd ZdZ	 ddZy)r   zNewick Clade (sub-tree) object.Nc                 Z    t         j                  j                  | ||||       || _        y)z0Initialize parameters for a Newick Clade object.)branch_lengthr
   clades
confidenceN)r   r   r   comment)r   r   r
   r   r   r   s         r   r   zClade.__init__   s3     	'! 	  	
 r   )NNNNNr   r   r   r   r   r      s    ) TXr   r   N)r   	Bio.Phylor   r   r   r   r   r   <module>r      s/   
 8== HNN r   