update class graph