graph input work