Fixed some hints
Added GraphFactory and createRandomGraphmethod and other