Adding total graph