[jgrapht-users] KShortestPaths issues
Brought to you by:
barak_naveh,
perfecthash
From: Achim B. <A.B...@gm...> - 2009-05-11 15:38:28
|
Hi, I am trying to use the getPath() method from the KShortestPaths class but without any luck (current version). I defined a new graph: DirectedGraph<String, DefaultEdge> directedGraph = new DefaultDirectedGraph<String, DefaultEdge> (DefaultEdge.class); and added some vertices and edges. Then: KShortestPaths shortestPaths = new KShortestPaths(directedGraph, "vertex1", 2); List path = shortestPaths.getPaths("vertex2"); Now, I get an output like this for 'path': [org.jgrapht.alg.KShortestPaths$PathWrapper@24f420, org.jgrapht.alg.KShortestPaths$PathWrapper@24f410] Where is my mistake? Thanks! -- Neu: GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate + Telefonanschluss für nur 17,95 Euro/mtl.!* http://dslspecial.gmx.de/freedsl-surfflat/?ac=OM.AD.PD003K11308T4569a |