Hi Garbor,
thanks for the fast answer.
You were right, the edgelist have confirmed that is a bipartite graph. (I was confused by the plot function).
But I haven't resolved the problem yet because is required that the sum out-degree and in-degree be the same even number.
Please, take a look at my example:
users = 1000
items = 500
usersDegs = sample(1:items, size=items, replace=TRUE, prob=(1:items)^-2)
itemsDegs = sample(1:users, size=users, replace=TRUE, prob=(1:users)^-2)
g <- degree.sequence.game(out.deg = c(usersDegs, rep(0, items)), in.deg = c(rep(0, users), itemsDegs))
It's very unlikely have that required sum using sample from a specified distribuition.
Is there a way to use degree.sequence.game with sampling from a distribution?
Is there another function to achieve this?