13 Feb
2017
13 Feb
'17
4:07 p.m.
Dear all, This must be a quite studip question. I am slightly confused about the random graph generation in graph-tool. So I tried generating an ER network: def deg_samp(k0 = 3): return np.random.poisson(k0) G = gt.random_graph(500, lambda : deg_samp(3), directed = False) This gives reasonable result: <Graph object, undirected, with 500 vertices and 780 edges at 0x7f516e897f98> However, I think that the following call is equivalent: G = gt.random_graph(500, deg_samp, directed = False) But this results into an extremely dense graph: <Graph object, undirected, with 500 vertices and 62252 edges at 0x7f516e8b59b0> What am I missing exactly? Thank you Snehal -- Snehal Madhukar Shekatkar Pune India