Rational Functions and Graphs