Python Topological Sort Kahn S Algorithm Trouble Stack Overflow

Python Topological Sort Kahn S Algorithm Trouble Stack Overflow