ó
    †~ic  ã                   ój   • S r SSKrSSKJr  S/r\" S5      \R                  " SSS9S	S j5       5       rg)
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                 ó6  ^• [         R                  " S5      m[        U 5       Hr  n[         R                  " TR	                  5       U4S j5      nUR                  SS5      S:X  a  [         R                  " TU5      mM[  [         R                  " TU5      mMt     T$ )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                 ó    >• U [        T5      -   $ ©N)Úlen)ÚxÚRs    €ÚY/home/mande/repo/quber/.venv/lib/python3.13/site-packages/networkx/generators/cographs.pyÚ<lambda>Ú random_cograph.<locals>.<lambda>=   s   ø€ °!´c¸!³f²*ó    r   )ÚnxÚempty_graphÚrangeÚrelabel_nodesÚcopyÚrandintÚ	full_joinÚdisjoint_union)ÚnÚseedÚiÚRRr   s       @r   r   r      sw   ø€ ôJ 	�Š�qÓ€Aä�1ŽXˆÜ×Ò˜aŸf™f›hÔ(<Ó=ˆà�<‰<˜˜1Ó Ó"Ü—’˜Q Ó#ŠAä×!Ò! ! RÓ(ŠAñ ð €Hr   r
   )Ú__doc__Únetworkxr   Únetworkx.utilsr   Ú__all__Ú_dispatchabler   © r   r   Ú<module>r$      sH   ðñó Ý *àÐ
€ñ �ÓØ×Ò˜¨TÑ2ó-ó 3ó ñ-r   