
    Xf                     b    d Z ddlmZ  G d dej                  Z G d dej                  ZdS )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dS )TreezNewick Tree object.NF      ?c                 x    t           j                            | |pt                      |||           || _        dS )z/Initialize parameters for a Newick tree object.)rootrootedidnameN)r   r   __init__Cladeweight)selfr   r	   r
   r   r   s         0lib/python3.11/site-packages/Bio/Phylo/Newick.pyr   zTree.__init__   sA    tuwwv"4 	 	
 	
 	
     )NFNNr   __name__
__module____qualname____doc__r    r   r   r   r      s.             r   r   c                       e Zd ZdZ	 ddZdS )r   zNewick Clade (sub-tree) object.Nc                 \    t           j                            | ||||           || _        dS )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__   s?     	'! 	  	
 	
 	
 r   )NNNNNr   r   r   r   r   r      s5        )) TX     r   r   N)r   	Bio.Phylor   r   r   r   r   r   <module>r      s    
          8=       HN     r   