ó
 ,µ[c           @   s%  d  Z  d d l j Z d d l m Z d d d d d d d d d d d g Z e j e ƒ GHd GHe j e ƒ Z	 g  e	 j
 ƒ  D] \ Z Z e ^ q{ Z d	 e GHd
 GHi  Z x7 e D]/ Z e e k rÓ e e c d 7<q® d e e <q® Wd GHx! e D] Z d e e e f GHqí We j e	 ƒ e j ƒ  d S(   s[   
===============
Degree Sequence
===============

Random graph from given degree sequence.
iÿÿÿÿN(   t   nxi   i   i   i   s   Configuration models   Degree sequence %ss   Degree histograms   degree #nodess   %d %d(   t   __doc__t   matplotlib.pyplott   pyplott   pltt   networkxR    t   zt   is_graphicalt   configuration_modelt   Gt   degreet   nt   dt   degree_sequencet   histt   drawt   show(    (    (    s=   share/doc/networkx-2.2/examples/graph/plot_degree_sequence.pyt   <module>   s&   '%	