Re: [graph-tool] n_iter with parallel edges allowed

2020-09-04 Thread Tiago de Paula Peixoto
Am 28.08.20 um 12:09 schrieb Snehal Shekatkar: > Hi Tiago, > > From the documentation of deg_sampler: "This function is called once per > vertex, but may be called more times, if the degree sequence cannot be used > to build a graph." > > Now suppose my deg_sampler sometimes returns values grea

Re: [graph-tool] n_iter with parallel edges allowed

2020-09-04 Thread Tiago de Paula Peixoto
Am 04.09.20 um 19:01 schrieb Snehal Shekatkar: > Thanks Tiago for the reply. Here is a script for generating a random regular > graph as an example: > > def generate_rrg(n, k): > > g = gt.random_graph(n, deg_sampler = lambda : k, directed = False, > verbose = True, n_iter = 1000) >

Re: [graph-tool] n_iter with parallel edges allowed

2020-09-04 Thread Snehal Shekatkar
Thanks Tiago for the reply. Here is a script for generating a random regular graph as an example: def generate_rrg(n, k): g = gt.random_graph(n, deg_sampler = lambda : k, directed = False, verbose = True, n_iter = 1000) return g Since verbose is True, this prints what is happen

Re: [graph-tool] n_iter with parallel edges allowed

2020-09-04 Thread Snehal Shekatkar
Hi Tiago, Of course I showed the impossible graph example on purpose just to see whether all the vertices are added at once or one by one. If I try to generate other graphs, the verbose changes so quickly that the only line I see is "Added 10 vertices" etc. So okay, it checks the maximum degree