Ë
    åhi`  ã                   ó   — d Z dd„ZdZdd„Zy)z…
altgraph.GraphStat - Functions providing various graph statistics
=================================================================
c                 ó¦   — g }|dk(  r| j                   }n| j                  }| D ]  }|j                   ||«      «       Œ |sg S t        |||¬«      }|S )a:  
    Computes the degree distribution for a graph.

    Returns a list of tuples where the first element of the tuple is the
    center of the bin representing a range of degrees and the second element
    of the tuple are the number of nodes with the degree falling in the range.

    Example::

        ....
    Úinc)ÚvaluesÚlimitsÚbin_num)Ú
inc_degreeÚ
out_degreeÚappendÚ_binning)Úgraphr   r   ÚmodeÚdegÚget_degÚnodeÚresultss           ú>C:\des-py\Monitor\venv\Lib\site-packages\altgraph/GraphStat.pyÚdegree_distr      sb   € ð €CØˆu‚}Ø×"Ñ"‰à×"Ñ"ˆàò "ˆØ�
‰
‘7˜4“=Õ!ð"ñ Øˆ	ä˜c¨&¸'ÔB€Gà€Nó    g      ð=c                 óŽ  — |dk(  r%t        | «      t        z
  t        | «      t        z   }}n|\  }}||z
  t        |«      z  }dg|z  }| D ]2  }	 ||z
  dk\  r't	        ||z
  t        |«      z  «      }||xx   dz  cc<   Œ4 g }	|dz  |z   }
t        |«      D ]   \  }}|
||z  z   }|	j                  ||f«       Œ" |	S # t
        $ r Y Œzw xY w)a  
    Bins data that falls between certain limits, if the limits are (0, 0) the
    minimum and maximum values are used.

    Returns a list of tuples where the first element of the tuple is the
    center of the bin and the second element of the tuple are the counts.
    ©é    r   r   é   é   )ÚminÚ_EPSÚmaxÚfloatÚintÚ
IndexErrorÚ	enumerater	   )r   r   r   Úmin_valÚmax_valÚbin_sizeÚbinsÚvalueÚindexÚresultÚcenterÚiÚyÚxs                 r   r
   r
   (   sþ   € ð �ÒÜ˜v›;¬Ñ-¬s°6«{¼TÑ/A�‰à!Ñˆ�ð ˜'Ñ!¤U¨7£^Ñ3€HØˆ3�'‰?€Dð ò ˆð	Ø˜‘ AÒ%Ü˜U W™_´°h³Ñ?Ó@�Ø�U“˜qÑ “øð	ð €FØ˜‰l˜gÑ%€FÜ˜$“ò ‰ˆˆ1Ø�X ‘\Ñ!ˆØ�‰�q˜!�fÕðð €Møô ò 	Ùð	ús   Á/B8Â8	CÃCN)r   é
   Úout)r   r+   )Ú__doc__r   r   r
   © r   r   ú<module>r/      s   ðñóð< €ô!r   