• Tiago Peixoto's avatar
    Improve correlated graph generation · e1dd1665
    Tiago Peixoto authored
    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.
    e1dd1665
graph_generation.hh 25.2 KB