random graph labeling