output dependencies when sorting topologically fails