hyb
2025-12-31 6cdcd01f77e11b72c323603e27ebdb85b15223c9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Ë
?ñúh`ãó—dZdd„ZdZdd„Zy)z…
altgraph.GraphStat - Functions providing various graph statistics
=================================================================
có¦—g}|dk(r |j}n |j}|D]}|j||««Œ|sgSt|||¬«}|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)ÚgraphrrÚmodeÚdegÚget_degÚnodeÚresultss        úEH:\Change_password\venv_build\Lib\site-packages\altgraph/GraphStat.pyÚ degree_distrsb€ð €CØ ˆu‚}Ø×"Ñ"‰à×"Ñ"ˆàò"ˆØ 
‰
‘7˜4“=Õ!ð"ñ ؈    ä˜c¨&¸'ÔB€Gà €Nógð=cóŽ—|dk(r%t|«tz
t|«tz}}n|\}}||z
t|«z }dg|z}|D]2}    ||z
dk\r't    ||z
t|«z «}||xxdz cc<Œ4g}    |dz |z}
t |«D] \} } |
|| zz} |    j| | f«Œ"|    S#t
$rYŒzwxYw)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.
    ©érréé)ÚminÚ_EPSÚmaxÚfloatÚintÚ
IndexErrorÚ    enumerater    )rrrÚmin_valÚmax_valÚbin_sizeÚbinsÚvalueÚindexÚresultÚcenterÚiÚyÚxs              rr
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ÃCN)ré
Úout)rr+)Ú__doc__rrr
©rrú<module>r/sðñó ð<€ô!r