add state class graph