Moved graph properties to graph class

Yes thats what i did