How To Find Input And Output On A Graph