How to get the random graph with non-uniform probabilities? | Synapse