The issue I am having is that for an assignment for a network analysis class I need to use the erdos.renyi.game
command from the igraph package for R.
This command looks like this:
erdos.renyi.game(n, p.or.m, type=c("gnp", "gnm"),
directed = FALSE, loops = FALSE, ...)
Unfortunately, it does not matter what I fill in for n or m (I need m), type, or directed, I always get the same error:
Error in .Call("R_igraph_erdos_renyi_game", as.numeric(n), as.numeric(type1), : At games.c:585 : Invalid probability given, Invalid value
The people around me in class used the exact same code as I did, and for them it worked. So could anyone please help me with this, because I am not really sure what is going on, and the teacher did not understand it either?