§
    bŠtjc  ã                   ó~   — d Z ddlZddlmZ dgZ ed¦  «         ej        dd¬¦  «        d	d„¦   «         ¦   «         ZdS )
a–  Generators for cographs

A cograph is a graph containing no path on four vertices.
Cographs or $P_4$-free graphs can be obtained from a single vertex
by disjoint union and complementation operations.

References
----------
.. [0] D.G. Corneil, H. Lerchs, L.Stewart Burlingham,
    "Complement reducible graphs",
    Discrete Applied Mathematics, Volume 3, Issue 3, 1981, Pages 163-174,
    ISSN 0166-218X.
é    N)Úpy_random_stateÚrandom_cographé   T)ÚgraphsÚreturns_graphc                 ó2  ‡— t          j        d¦  «        Št          | ¦  «        D ]q}t          j        ‰                     ¦   «         ˆfd„¦  «        }|                     dd¦  «        dk    rt          j        ‰|¦  «        ŠŒ\t          j        ‰|¦  «        ŠŒr‰S )að  Returns a random cograph with $2 ^ n$ nodes.

    A cograph is a graph containing no path on four vertices.
    Cographs or $P_4$-free graphs can be obtained from a single vertex
    by disjoint union and complementation operations.

    This generator starts off from a single vertex and performs disjoint
    union and full join operations on itself.
    The decision on which operation will take place is random.

    Parameters
    ----------
    n : int
        The order of the cograph.
    seed : integer, random_state, or None (default)
        Indicator of random number generation state.
        See :ref:`Randomness<randomness>`.

    Returns
    -------
    G : A random graph containing no path on four vertices.

    See Also
    --------
    full_join
    union

    References
    ----------
    .. [1] D.G. Corneil, H. Lerchs, L.Stewart Burlingham,
       "Complement reducible graphs",
       Discrete Applied Mathematics, Volume 3, Issue 3, 1981, Pages 163-174,
       ISSN 0166-218X.
    r   c                 ó(   •— | t          ‰¦  «        z   S ©N)Úlen)ÚxÚRs    €úZ/var/www/html/CA-Chatbot/venv/lib/python3.11/site-packages/networkx/generators/cographs.pyú<lambda>z random_cograph.<locals>.<lambda>=   s   ø€ °!µc¸!±f´f±*€ ó    r   )ÚnxÚempty_graphÚrangeÚrelabel_nodesÚcopyÚrandintÚ	full_joinÚdisjoint_union)ÚnÚseedÚiÚRRr   s       @r   r   r      s“   ø€ õJ 	Œ�qÑÔ€Aå�1‰XŒXð )ð )ˆÝÔ˜aŸfšf™hœhÐ(<Ð(<Ð(<Ð(<Ñ=Ô=ˆà�<Š<˜˜1ÑÔ Ò"Ð"Ý”˜Q Ñ#Ô#ˆAˆAåÔ! ! RÑ(Ô(ˆAˆAà€Hr   r
   )Ú__doc__Únetworkxr   Únetworkx.utilsr   Ú__all__Ú_dispatchabler   © r   r   ú<module>r#      s‰   ððð ð Ð Ð Ð Ø *Ð *Ð *Ð *Ð *Ð *àÐ
€ð €�ÑÔØ€Ô˜¨TÐ2Ñ2Ô2ð-ð -ð -ñ 3Ô2ñ Ôð-ð -ð -r   