rpl graph, added methods to calculate successors and ancestors