4. Recognizing DAGs