add members to graph class
added copy constructor