[jgrapht-users] JGrapht: Compare two GraphPath
Brought to you by:
barak_naveh,
perfecthash
From: Pankaj2590 <kha...@gm...> - 2013-04-01 18:13:30
|
Hi, I am writing a customize function to compare two GraphPaths of SimpleWeightedGraph, where edges are DefaultWeightedEdge. For the same, when the length of the both GraphPths are unequal then i am considering the GraphPath which has less length as "smaller". But for the equal length GraphPath, i am considering the GraphPath as "smaller" which contains edge, that is greater than all the edges of other GraphPath. Here, I am having the Start Vertex of the Graphpath and End Vertex of the GraphPath but any how i am not able to get opposite vertex. I have tried also by comparing the vertices by creating graph of GraphPath, wheather they are exists in this new graph or not. after that, i am not able to find the weight of the edge. Then how i compare those weights?? Conclusion is how i extract the weight of an edge..because getWeight method is not applicable for the same. Thanks in advance for your reply or valuable suggestions. -- View this message in context: http://jgrapht-users.107614.n3.nabble.com/JGrapht-Compare-two-GraphPath-tp4024785.html Sent from the jgrapht-users mailing list archive at Nabble.com. |