BGL: dijkstra_shortest_paths and parallel edges
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, my former posting leads me to another question: How does the dijkstra_shortest_paths behave if applied to a multigraph? And how does the dijkstra_shortest_paths behave if applied to a filtered_(multi)graph containing parallel edges, but with only _one_ of the parallel edges visible respectively? Michael - -- http://www.ive.uni-hannover.de # kettner@ive.uni-hannover.de -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9TqprkCdGnb0kVFMRApGUAJ9nzr3Y4ijbrNnWENzxYIwcdLy8iQCfX2fx dl0M/IUt2bWFL0H9ovwajm4= =+FTJ -----END PGP SIGNATURE-----
Hi Michael, On Mon, 5 Aug 2002, Michael Kettner wrote: kettne> Hi, kettne> kettne> my former posting leads me to another question: kettne> kettne> How does the dijkstra_shortest_paths behave if applied to a multigraph? dijkstra's is based on BFS, which traverses the graph using out-edge iterators, and out-edge iterators traverse all out-edges of a vertex, including the parallel ones. Therefore, I think dijkstra's will behave correctly for a multigraph. kettne> And how does the dijkstra_shortest_paths behave if applied to a kettne> filtered_(multi)graph containing parallel edges, but with only _one_ of the kettne> parallel edges visible respectively? That should be OK too. Cheers, Jeremy ---------------------------------------------------------------------- Jeremy Siek http://php.indiana.edu/~jsiek/ Ph.D. Student, Indiana Univ. B'ton email: jsiek@osl.iu.edu C++ Booster (http://www.boost.org) office phone: (812) 855-3608 ----------------------------------------------------------------------
participants (2)
-
Jeremy Siek
-
Michael Kettner