[jgrapht-users] help on using getSource and/or getTarget for edge
Brought to you by:
barak_naveh,
perfecthash
From: Kuan Y. <yan...@gm...> - 2010-10-28 04:50:21
|
Hi all, I am having problem accessing these two methods in all edge classes since they are protected. My scenario is that, by some way I get a list of edges, e.g. shortestPath, and then I want to process the edges one by one. By processing I mean I need to at least know the source and target of each edge. I don't want to write a parser to parse the output from the toString(), since the node name can get very messy in my case. I just want a clean way to grab the source and target information for each edge. Can anyone help? Thanks in advance. Kuan |