updated rr_graph generator