Turning Graph Into Function Notation