I was revising Greedy algorithms and have read in a book that topological sort is a greedy algorithm. I couldn't understand why it is greedy. Can anyone help me to understand? Thanks in advance