I have a list of items that have a partial order relation, i. e, the list can be considered a partially ordered set. I want to sort this list in the same way as in this question. As correctly answered
I want to use a PriorityQueue to do a topological sort on a graph. For brevity, I\'d like to use an anonymous inner class for the comparator. However, I need access to the graph g in order to determin