Graph class update