Make graph work