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)