moved all graphing to one method

all graphing is now performed by
the graph method of Grapher.java.
this way, changing things won't
require updating three different
methods every time.