Open newptcai opened 3 years ago
LightGraphs now has a generator for the Configuration Model like this
random_configuration_model(n, ks)
which "Create a random undirected graph according to the configuration model containing n vertices, with each node i having degree k[i]".
i
k[i]
I would like to implement
random_directed_configuration_model(n, ins, outs)
to generated a directed configuration model, i.e., each a directed graph in which node i has in-degree ins[i] and out-degree outs[i].
ins[i]
outs[i]
This can be implemented by reusing some code in random_configuration_model.
random_configuration_model
I can write the code and create a PR if you agree to include it in LightGraphs.
LightGraphs now has a generator for the Configuration Model like this
which "Create a random undirected graph according to the configuration model containing n vertices, with each node
i
having degreek[i]
".I would like to implement
to generated a directed configuration model, i.e., each a directed graph in which node
i
has in-degreeins[i]
and out-degreeouts[i]
.This can be implemented by reusing some code in
random_configuration_model
.I can write the code and create a PR if you agree to include it in LightGraphs.