Ë
    D^(hl  ã                   óL   — d Z dgZddlZ ej                  dd¬«      dd„«       Zy)z
Ego graph.
Ú	ego_graphé    NT)Úpreserve_all_attrsÚreturns_graphc                 ó¨  — |r]|�+t        j                  | j                  «       |||¬«      \  }}npt        t        j                  | j                  «       ||¬«      «      }n@|�t        j                  | |||¬«      \  }}n!t        t        j                  | ||¬«      «      }| j                  |«      j                  «       }|s|j                  |«       |S )aï  Returns induced subgraph of neighbors centered at node n within
    a given radius.

    Parameters
    ----------
    G : graph
      A NetworkX Graph or DiGraph

    n : node
      A single node

    radius : number, optional
      Include all neighbors of distance<=radius from n.

    center : bool, optional
      If False, do not include center node in graph

    undirected : bool, optional
      If True use both in- and out-neighbors of directed graphs.

    distance : key, optional
      Use specified edge data key as distance.  For example, setting
      distance='weight' will use the edge weight to measure the
      distance from the node n.

    Notes
    -----
    For directed graphs D this produces the "out" neighborhood
    or successors.  If you want the neighborhood of predecessors
    first reverse the graph with D.reverse().  If you want both
    directions use the keyword argument undirected=True.

    Node, edge, and graph attributes are copied to the returned subgraph.
    )ÚcutoffÚweight)r   )ÚnxÚsingle_source_dijkstraÚto_undirectedÚdictÚ"single_source_shortest_path_lengthÚsubgraphÚcopyÚremove_node)	ÚGÚnÚradiusÚcenterÚ
undirectedÚdistanceÚspÚ_ÚHs	            úU/var/www/skyplay_api_hub/venv/lib/python3.12/site-packages/networkx/generators/ego.pyr   r   
   s¿   € ñH ØÐÜ×-Ñ-Ø—‘Ó! 1¨V¸Hô‰EˆB‘ô Ü×5Ñ5Ø—O‘OÓ% q°ôó‰Bð ÐÜ×-Ñ-¨a°¸6È(ÔS‰EˆB‘ä”b×;Ñ;¸A¸qÈÔPÓQˆBà	�
‰
�2‹×ÑÓ€AÙØ	�‰�aÔØ€Hó    )é   TFN)Ú__doc__Ú__all__Únetworkxr	   Ú_dispatchabler   © r   r   ú<module>r"      s9   ðñð ˆ-€ã ð €×Ñ T¸Ô>ò7ó ?ñ7r   