U
    ¹mœdŽ  ã                   @   s¾   d Z ddlmZ ddlmZ ddlZdZdZ	dZ
ejee	e
d�Ze ¡ Zeeedƒd	�d
 \ZZe ee¡Zejee
d�Zejeedddd� dddœZejeefdegie—Ž e ¡  dS )uœ   
=========
Ego Graph
=========

Example using the NetworkX ego_graph() function to return the main egonet of
the largest hub in a BarabÃ¡si-Albert network.
é    )Ú
itemgetterNiè  é   i4P  )Úseedé   )ÚkeyéÿÿÿÿÚbé2   F)Ú
node_colorÚ	node_sizeZwith_labelsi,  Úr)r   r
   Znodelist)Ú__doc__Úoperatorr   Zmatplotlib.pyplotZpyplotZpltZnetworkxÚnxÚnÚmr   Zbarabasi_albert_graphÚGZdegreeZnode_and_degreeÚsortedZlargest_hubZ	ego_graphZhub_egoZspring_layoutÚposZdrawÚoptionsZdraw_networkx_nodesÚshow© r   r   úx/home/sam/Atlas/atlas_env/lib/python3.8/site-packages/../../../share/doc/networkx-3.1/examples/drawing/plot_ego_graph.pyÚ<module>   s   	
