Fixed an bug when creating a random graph, which could cause that an
edge is not added.