+
    )ic                     r    R t ^ RIt^ RIHt R.t]! ^4      ]P                  ! RRR7      RR l4       4       tR# )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_cographT)graphsreturns_graphc                8  a \         P                  ! ^4      o\        V 4       Fs  p\         P                  ! SP	                  4       V3R l4      pVP                  ^ ^4      ^ 8X  d   \         P                  ! SV4      oK\  \         P                  ! SV4      oKu  	  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.
c                 (   < V \        S4      ,           # N)len)xRs   &Z/var/www/html/photoedit/myenv/lib/python3.14/site-packages/networkx/generators/cographs.py<lambda> random_cograph.<locals>.<lambda>=   s    !c!f*    )nxempty_graphrangerelabel_nodescopyrandint	full_joindisjoint_union)nseediRRr   s   &&  @r   r   r      sw    J 	qA1Xaffh(<=<<1"Q#A!!!R(A  Hr   r   )__doc__networkxr   networkx.utilsr   __all___dispatchabler    r   r   <module>r"      sH     *
 T2- 3 -r   