From: Cecilia A. <cec...@gm...> - 2013-07-20 15:04:46
|
Hello, I'm using Jgrapht to do a topological sort and I would like to get a specific behavior when finding branches: Here's my example: I have Path 1: A - B - C - 1D - 1E - 1F Path 2: A - B - C - 2D - 2E - 2F What I would like to have after using the topological sort is: Either: A - B - C - 1D - 1E - 1F - 2D - 2E - 2F Or A - B - C - 2D - 2E - 2F - 1D - 1E - 1F But what I get when using the Class TopologicalOrderIterator is: A - B - C - 1D - 2D - 1E - 2E - 1F - 2F Anyone could give me any suggestion about how to adapt the TopologicalOrderIerator or anything that might help me ? Cheers, -- Cecilia Arenas |