faster updating graph