changed rocks to graph