ó
    ò®i`  ã                   ó    • S r SS jrSrSS jrg)z…
altgraph.GraphStat - Functions providing various graph statistics
=================================================================
c                 ó®   • / nUS:X  a  U R                   nOU R                  nU  H  nUR                  U" U5      5        M     U(       d  / $ [        XAUS9nU$ )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\RoboSAPF\venv\Lib\site-packages\altgraph/GraphStat.pyÚdegree_distr      s[   € ð €CØˆuƒ}Ø×"Ñ"‰à×"Ñ"ˆãˆØ�
‰
‘7˜4“=Ö!ñ ö Øˆ	ä˜c¸'ÑB€Gà€Nó    g      ð=c                 ó�  • US:X  a$  [        U 5      [        -
  [        U 5      [        -   pCOUu  p4XC-
  [        U5      -  nS/U-  nU  H3  n Xs-
  S:¼  a'  [	        Xs-
  [        U5      -  5      nXh==   S-  ss'   M3  M5     / n	US-  U-   n
[        U5       H  u  p¼X¥U-  -   nU	R                  XÜ45        M      U	$ ! [
         a     M}  f = f)zü
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™_´°h³Ñ?Ó@�Ø“˜qÑ •ñ &ñ ð €FØ˜‰l˜gÑ%€FÜ˜$–‰ˆØ ‘\Ñ!ˆØ�‰�q�fÖñ  ð €Møô ó 	Úð	ús   Á-B7Â7
CÃCN)r   é
   Úout)r   r+   )Ú__doc__r   r   r
   © r   r   Ú<module>r/      s   ðñôð< €õ!r   