Graphs of rational functions