Update usage of Graphs.jl, remove deprecated methods.

Graphs.jl has changed it's interface to the graph method. Also change max and
min methods to maximum and minimum according to deprecation warnings.