Acyclic Orientations for Deadlock Prevention in Interconnection Networks