I found this very simple example online:
library(igraph) g <- graph.ring(5) plot(g) summary(g) degree.distribution(g)
I got the same results before degree.distribution(g) , and instead of [1] 0 0 1 I get NULL .
Since I have exactly the same problem with this example (NULL result for degree.distribution function instead of [1] 0.135 0.280 0.315 0.110 0.095 0.050 0.005 0.010 ). Interestingly, the problem could be in installing the package.
source share