ó
 ,µ[c           @   s±  d  Z  d d l Z d d l j Z d d l Z e j d d ƒ Z e	 g  e j
 ƒ  D] \ Z Z e ^ qO d e ƒZ e j e ƒ Z e e j ƒ  Œ  \ Z Z e j ƒ  \ Z Z e j e e d d d d	 ƒe j d
 ƒ e j d ƒ e j d ƒ e j g  e D] Z e d ^ qù ƒ e j e ƒ e j d d d d g ƒ e	 e j e ƒ d e  d e ƒd Z! e j" e ƒ Z# e j$ d ƒ e j% e e# d d ƒe j& e e# d d ƒe j' ƒ  d S(   sx   
================
Degree histogram
================

Draw degree histogram with matplotlib.
Random graph shown as inset
iÿÿÿÿNid   g{®Gáz”?t   reverset   widthgš™™™™™é?t   colort   bs   Degree Histogramt   Countt   Degreegš™™™™™Ù?g      à?t   keyi    t   offt	   node_sizei   t   alpha((   t   __doc__t   collectionst   matplotlib.pyplott   pyplott   pltt   networkxt   nxt   gnp_random_grapht   Gt   sortedt   degreet   nt   dt   Truet   degree_sequencet   Countert   degreeCountt   zipt   itemst   degt   cntt   subplotst   figt   axt   bart   titlet   ylabelt   xlabelt
   set_xtickst   set_xticklabelst   axest   connected_component_subgraphst   lent   Gcct   spring_layoutt   post   axist   draw_networkx_nodest   draw_networkx_edgest   show(    (    (    s@   share/doc/networkx-2.2/examples/drawing/plot_degree_histogram.pyt   <module>	   s*   1$%