working random graph