diagram with dependencies