ó
 ,µ[c        	   @   s  d  Z  d d l m Z d d l j Z d d l Z e d k rd Z	 d Z
 e j j e	 e
 ƒ Z e j ƒ  Z e e d e d ƒ ƒd \ Z Z e j e e ƒ Z e j e ƒ Z e j e e d	 d
 d d d e ƒe j e e d e g d d d	 d ƒe j ƒ  n  d S(   sœ   
=========
Ego Graph
=========

Example using the NetworkX ego_graph() function to return the main egonet of
the largest hub in a BarabÃ¡si-Albert network.
iÿÿÿÿ(   t
   itemgetterNt   __main__iè  i   t   keyi   t
   node_colort   bt	   node_sizei2   t   with_labelst   nodelisti,  t   r(   t   __doc__t   operatorR    t   matplotlib.pyplott   pyplott   pltt   networkxt   nxt   __name__t   nt   mt
   generatorst   barabasi_albert_grapht   Gt   degreet   node_and_degreet   sortedt   largest_hubt	   ego_grapht   hub_egot   spring_layoutt   post   drawt   Falset   draw_networkx_nodest   show(    (    (    s9   share/doc/networkx-2.2/examples/drawing/plot_ego_graph.pyt   <module>
   s   ""%