YARC -> Changed the graph refs from indices to pointers