change pc_graph into a reference to pc_rule pointers