[jgrapht-users] BFS -- immediate predecessor across an edge?
Brought to you by:
barak_naveh,
perfecthash
From: Nick W. <nic...@gm...> - 2010-04-13 11:12:47
|
Hi Using BreadthFirstIterator, how do I get the immediate predecessor/parent vertex to the one I'm currently visiting? I can set up a client class to listen for traversal events, but I can't see how to find the immediate predecessor. (Note, I don't want to subclass BreadthFirstIterator to do this). TIA, -- Nick Wiggill www.handcraftedgames.net |