Make graph convertion work