
    h	                         S r SSKrSSKJr  S/r0 S/ _SS/_SSS	/_S
S	S/_SSS/_SSS/_S/ SQ_S/ SQ_S/ SQ_S/ SQ_S/ SQ_S/ SQ_S/ SQ_S/ SQ_S/ S Q_S!/ S"Q_r\R                  " SS#S$9S% 5       rg)&zZFunctions that generate the triad graphs, that is, the possible
digraphs on three nodes.

    N)DiGraphtriad_graph003012ab102ba021Dbc021Ucb021C111D)accar   111U)r   r   r   030T)r   r   r   030C)r	   r   r   201)r   r	   r   r   120D)r   r	   r   r   120U)r   r   r   r   120C)r   r   r   r   210)r   r   r   r   r   300)r   r	   r   r   r   r   T)graphsreturns_graphc                     U [         ;  a  [        SU  S35      e[        5       nUR                  S5        UR	                  [         U    5        U$ )a6  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   add_nodes_fromadd_edges_from)
triad_nameGs     L/var/www/html/env/lib/python3.13/site-packages/networkx/generators/triads.pyr   r   %   sZ    b $":, /+ +
 	
 		AU[,-H    )	__doc__networkxnxnetworkx.classesr   __all__r   _dispatchabler    r&   r%   <module>r.      s  

  $/	2	D6 
D$< T4L	
 T4L T4L     
# $ $ $ 
)  
/!( T28 38r&   