random graph clustering