So currently I use the following code to randomly generate 30 nodes and 151 connections.
g <- erdos.renyi.game(30, 151 , type = "gnm" , directed = F , loops = F)
But, I want to generate an empty graph then randomly generate 151 edges. How would I go about doing that? Is there a code that I can add to the one below?
g <- g <- graph.empty(30, directed = F)