Added get and set functions to graph library