Make setGraph chainable