Simplified MainController#graph