Converts to Rgraph