sample_RG function

Sample a relationship graph (RG)