Hello,

> I am using the R package of igraph. I know there is a function named
> "power.law.fit" to calculate the parameters of the distribution.
> I wonder how can I plot a figure, which shows the degree distribution with a
> fitted line (like the attached figure).
The page below shows an example, although it uses a different fitting method
(not the built-in power.law.fit function):

http://chengjun.github.io/web_data_analysis/demo2_simulate_networks/

(See the last example on that page).

As a sidenote, I think it is much better to create a figure that shows the cdf
of the degree function instead of the pdf because the tail tends to be less
noisy for the cdf. (Also, there is only a difference of 1 between the exponent
of the cdf and the exponent of the pdf in case of a power-law).

Best,
-- 
T.

_______________________________________________
igraph-help mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/igraph-help

Reply via email to