graph-tool random network generator can not accept zero degree
It seems that the graph_tool.generation.random_graph function can get obtain 0 as the output the deg_sampler function.
For example,
out_degree=[0,2,2]
def deg_sequence(i,out_degree,in_degree=None):
return int(out_degree[i])
g = gt.random_graph(3,lambda x: deg_sequence(x,out_degree),directed=False)
seems to crash / hold for a long time. It this behavior by design?