DAG cycle detection. sap() returns string in original order.