enumerate_RGs function

Enumerate relationship graphs (RGs)