adding graphs