python - Calculate average degree distribution -
does know how can calculate average grade distribution using python-igraph ? thought might have function find degree_distribution returns nodes grade not average.
thanks
you don't need have separate function calculate sorts of summary statistics grade distribution; igraph provides function calculate mean of list of numbers (see igraph.mean
) , function calculate grade list need combine two:
>>> igraph import graph, mean >>> g = graph.grg(100, 0.2) >>> mean(g.degree()) 10.8
python igraph
No comments:
Post a Comment