fix the prototype Graph so now it can work