Added a seperate package for the graph functionalities.
Changed the gernation to the new helper package and added the possibility to decide between directed and undirected graphs.