Moved Methods to Graph Class

Removed the functions for the graph class out of the main class and into
the graph class to clean up the code
Cleaning Code

!