o
    &?e                     @   s   d Z ddlZddlmZ dgZi dg ddgddd	gd
d	dgdddgdddgdg ddg ddg ddg ddg ddg ddg ddg ddg d d!g d"Zejdd#d$d ZdS )%zZFunctions that generate the triad graphs, that is, the possible
digraphs on three nodes.

    N)DiGraphtriad_graphZ003Z012abZ102baZ021DbcZ021UcbZ021CZ111D)accar   Z111U)r   r	   r   Z030T)r   r   r   Z030C)r   r   r   Z201)r   r   r   r	   Z120D)r   r   r   r	   Z120U)r   r   r   r	   Z120C)r   r   r   r	   Z210)r   r   r   r   r	   Z300)r   r   r   r   r   r	   )Zgraphsc                 C   s:   | t vrtd|  dt }|d |t |   |S )a  Returns the triad graph with the given name.

    Each string in the following tuple is a valid triad name::

        ('003', '012', '102', '021D', '021U', '021C', '111D', '111U',
         '030T', '030C', '201', '120D', '120U', '120C', '210', '300')

    Each triad name corresponds to one of the possible valid digraph on
    three nodes.

    Parameters
    ----------
    triad_name : string
        The name of a triad, as described above.

    Returns
    -------
    :class:`~networkx.DiGraph`
        The digraph on three nodes with the given name. The nodes of the
        graph are the single-character strings 'a', 'b', and 'c'.

    Raises
    ------
    ValueError
        If `triad_name` is not the name of a triad.

    See also
    --------
    triadic_census

    zunknown triad name "z9"; use one of the triad names in the TRIAD_NAMES constantabc)TRIAD_EDGES
ValueErrorr   Zadd_nodes_fromZadd_edges_from)Z
triad_nameG r   [/home/www/facesmatcher.com/pyenv/lib/python3.10/site-packages/networkx/generators/triads.pyr   $   s   !

)	__doc__ZnetworkxnxZnetworkx.classesr   __all__r   	_dispatchr   r   r   r   r   <module>   sN   	

