Make setGraph chainable.