random graph formation