Ë
    D^(hN  ã                   ó~   — d Z ddlZddlmZ ddlmZ dgZ ed«       ed«      ej                  d	„ «       «       «       Z	y)
z
Ramsey numbers.
é    N)Únot_implemented_foré   )Úarbitrary_elementÚ	ramsey_R2ÚdirectedÚ
multigraphc                 óè  ‡— | st        «       t        «       fS t        | «      Šˆfd„t        j                  | ‰«      D «       }t        j                  | ‰«      }t        | j                  |«      j                  «       «      \  }}t        | j                  |«      j                  «       «      \  }}|j                  ‰«       |j                  ‰«       t        ||t        ¬«      t        ||t        ¬«      fS )aH  Compute the largest clique and largest independent set in `G`.

    This can be used to estimate bounds for the 2-color
    Ramsey number `R(2;s,t)` for `G`.

    This is a recursive implementation which could run into trouble
    for large recursions. Note that self-loop edges are ignored.

    Parameters
    ----------
    G : NetworkX graph
        Undirected graph

    Returns
    -------
    max_pair : (set, set) tuple
        Maximum clique, Maximum independent set.

    Raises
    ------
    NetworkXNotImplemented
        If the graph is directed or is a multigraph.
    c              3   ó.   •K  — | ]  }|‰k7  sŒ	|–— Œ y ­w)N© )Ú.0ÚnbrÚnodes     €úf/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/networkx/algorithms/approximation/ramsey.pyú	<genexpr>zramsey_R2.<locals>.<genexpr>,   s   øè ø€ ÒD�C¸¸t»ŒCÑDùs   ƒ
Ž)Úkey)Úsetr   ÚnxÚall_neighborsÚnon_neighborsr   ÚsubgraphÚcopyÚaddÚmaxÚlen)ÚGÚnbrsÚnnbrsÚc_1Úi_1Úc_2Úi_2r   s          @r   r   r      s¾   ø€ ñ6 Ü‹u”c“eˆ|Ðä˜QÓ€DÛDœ2×+Ñ+¨A¨tÓ4ÔD€DÜ×Ñ˜Q Ó%€EÜ˜Ÿ™ DÓ)×.Ñ.Ó0Ó1�H€CˆÜ˜Ÿ™ EÓ*×/Ñ/Ó1Ó2�H€Cˆà‡G�GˆD„MØ‡G�GˆD„Mô ˆs�CœSÔ!¤3 s¨C´SÔ#9Ð9Ð9ó    )
Ú__doc__Únetworkxr   Únetworkx.utilsr   Úutilsr   Ú__all__Ú_dispatchabler   r   r"   r   ú<module>r)      sP   ðñó Ý .å &àˆ-€ñ �ZÓ Ù�\Ó"Ø×Ññ%:ó ó #ó !ñ%:r"   