U
    9vfˆ  ã                   @   s¨   d Z ddlmZ dgZg dgddgddgddgddgdd	dgdd	dgdddgdddgdddd	gdddd	gdddd	gdddd	gddddd	gdddddd	gd
œZdd„ ZdS )zZFunctions that generate the triad graphs, that is, the possible
digraphs on three nodes.

é    )ÚDiGraphÚtriad_graphÚabÚbaZbcÚcbÚacÚca)Z003Z012Z102Z021DZ021UZ021CZ111DZ111UZ030TZ030CZ201Z120DZ120UZ120CZ210Z300c                 C   s:   | t k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   ú>/tmp/pip-unpacked-wheel-_lngutwb/networkx/generators/triads.pyr   #   s     
ÿ
N)Ú__doc__Znetworkx.classesr   Ú__all__r
   r   r   r   r   r   Ú<module>   s(   



ð