Thanks Michael Is this for shortest route using distance or it can be used to find the fastest path as well? To use this function, I need to path edge object of source an destination, while I just access the edge id which is an string. How can I access edge object using edge Id? Thanks for you time and help. Raheleh
On Sun, Sep 15, 2019 at 3:06 PM Michael Behrisch <o...@behrisch.de> wrote: > Hi, > just for the record: There is also a Dijkstra implementation in > sumolib.net.Net.getShortestPath. > > Best regards, > Michael > > Am 12.09.19 um 21:16 schrieb Raheleh Zarei: > > Thank you Jakob. > > How can I write my own python code using tracI and sumo libraries, and > > when the SUMO run, in my my python code, I should be able to debug SUMO > > source code? > > I already use visual studio, to debug the sumo source code and trace it, > > now I need to be able to trace the source code, when I use for example > > traci.simulation.findRoute in my python script. > > Thanks for your time and help. > > > > Best, > > > > > > On Mon, Sep 9, 2019 at 3:30 AM Jakob Erdmann <namdre.s...@gmail.com > > <mailto:namdre.s...@gmail.com>> wrote: > > > > traci.simulation.findRoute uses sumo functionality implemented in > > the C++ core. > > However, you can use python functions to affect the edge weights > > (traveltimes) that are used to find the fastest route. > > See > > > https://sumo.dlr.de/wiki/Simulation/Routing#Travel-time_values_for_routing > > > > Am Do., 5. Sept. 2019 um 03:29 Uhr schrieb Raheleh Zarei > > <raheleh.za...@gmail.com <mailto:raheleh.za...@gmail.com>>: > > > > Thanks for your reply. > > Can I customize the code behind traci.simulation.findRoute in > > my python code? > > > > Thanks > > > > On Wed, Sep 4, 2019 at 1:56 PM Jakob Erdmann > > <namdre.s...@gmail.com <mailto:namdre.s...@gmail.com>> wrote: > > > > The dijstra.py module is not actively developed or tested > > anymore. I canot vouch for its usefulnes. > > if you want to find shortest paths on a sumo network you can > > use traci.simulation.findRoute > > > > Am Di., 3. Sept. 2019 um 23:39 Uhr schrieb Raheleh Zarei > > <raheleh.za...@gmail.com <mailto:raheleh.za...@gmail.com>>: > > > > Hello > > > > I am writing a program in python, using TracI to > > connecto to SUMO simulation data. I need to use the > > Dijkstra algorithm for my program. I want to know if I > > can use the Dijkstra,py in tools folder of SUMO? How > > can I call this script and use its functions? > > > > Thank you > > > > -- > > *RAZ* > > _______________________________________________ > > sumo-user mailing list > > sumo-user@eclipse.org <mailto:sumo-user@eclipse.org> > > To change your delivery options, retrieve your password, > > or unsubscribe from this list, visit > > https://www.eclipse.org/mailman/listinfo/sumo-user > > > > _______________________________________________ > > sumo-user mailing list > > sumo-user@eclipse.org <mailto:sumo-user@eclipse.org> > > To change your delivery options, retrieve your password, or > > unsubscribe from this list, visit > > https://www.eclipse.org/mailman/listinfo/sumo-user > > > > > > > > -- > > *RAZ* > > _______________________________________________ > > sumo-user mailing list > > sumo-user@eclipse.org <mailto:sumo-user@eclipse.org> > > To change your delivery options, retrieve your password, or > > unsubscribe from this list, visit > > https://www.eclipse.org/mailman/listinfo/sumo-user > > > > _______________________________________________ > > sumo-user mailing list > > sumo-user@eclipse.org <mailto:sumo-user@eclipse.org> > > To change your delivery options, retrieve your password, or > > unsubscribe from this list, visit > > https://www.eclipse.org/mailman/listinfo/sumo-user > > > > > > > > -- > > *RAZ* > > > > _______________________________________________ > > sumo-user mailing list > > sumo-user@eclipse.org > > To change your delivery options, retrieve your password, or unsubscribe > from this list, visit > > https://www.eclipse.org/mailman/listinfo/sumo-user > > > > > _______________________________________________ > sumo-user mailing list > sumo-user@eclipse.org > To change your delivery options, retrieve your password, or unsubscribe > from this list, visit > https://www.eclipse.org/mailman/listinfo/sumo-user > -- *RAZ*
_______________________________________________ sumo-user mailing list sumo-user@eclipse.org To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user