CLUSTERING VARIABLES WITH DAG STRUCTURE