model for rpl graph, using networkx