Write a function to detect cycles or anomalies in a dependency graph of data pipeline tasks at Castleton Commodities International.