update attributed graphs