update class ALGraph