Improve correlated graph generation
random_graph() now uses a modified algorithm for generation of correlated graphs, which is more efficient. Instead of giving a function which returns a sample of the correlated target degree, the user must give a function which will just compute its probability. This probability will then be used to choose the edges.
Showing with 306 additions and 94 deletions