Re: [sumo-user] Error in duarouter

2023-10-18 Thread Yanglan Wang via sumo-user
t; class. > > > > Best regards > > Mirko > > > > > > > > > > -Original-Nachricht- > > Betreff: Re: [sumo-user] Error in duarouter > > Datum: 2023-10-17T02:48:02+0200 > > Von: "Manuel H. Rosales via sumo-user" > >

Re: [sumo-user] Error in duarouter

2023-10-17 Thread Mirko Barthauer via sumo-user
o return all reachable edges given a certain vehicle class. Best regards Mirko -Original-Nachricht----- Betreff: Re: [sumo-user] Error in duarouter Datum: 2023-10-17T02:48:02+0200 Von: "Manuel H. Rosales via sumo-user" An: "Yanglan Wang" Dear Yanglan Wang, Then, I

Re: [sumo-user] Error in duarouter

2023-10-16 Thread Manuel H. Rosales via sumo-user
Dear Yanglan Wang, Then, I think you need to use networkx from Python. Here is a tutorial: https://networkx.org/documentation/stable/tutorial.html There is a function connected_components(G) that returns connected components for not directional and directional graphs and you can do lists of them l

Re: [sumo-user] Error in duarouter

2023-10-16 Thread Yanglan Wang via sumo-user
Dear Manuel, Sorry for confusing you. My situation is that I use python to generate some OD edge pairs and then use duarouter to generate routes from origin-edges to destination-edges. But it shows no connection between some edges-A and edges-B. So I want to change OD pairs in python to make sure

Re: [sumo-user] Error in duarouter

2023-10-16 Thread Manuel H. Rosales via sumo-user
I don't understand very well your question But may be you are searching something like TRACI a lib of Python: https://sumo.dlr.de/pydoc/traci.html If you want for example to know what are edges in a intermodal route between a initial edge and final edge you can use *findIntermodalRoute*(self, f

Re: [sumo-user] Error in duarouter

2023-10-16 Thread Yanglan Wang via sumo-user
Dear Mirko, Maybe you miss my e-mail. Could you reply to my question: Is there any function in python or other packages that can provide edge's reachable edges as sumo-gui show? Best, Yanglan On Fri, Sep 15, 2023 at 10:00 AM Yanglan Wang wrote: > Dear Mirko, > > This is very helpful! And my

Re: [sumo-user] Error in duarouter

2023-09-15 Thread Yanglan Wang via sumo-user
Dear Mirko, This is very helpful! And my new question is do we have any such function in python or other package to provide edge's reachable edges? If we have such function, we can use it to generate valid origin-destination pairs. Thanks a lot! Best, Yanglan On Fri, Sep 15, 2023 at 5:59 AM Mir

Re: [sumo-user] Error in duarouter

2023-09-15 Thread Mirko Barthauer via sumo-user
Dear Yanglan, all edges along the route have to allow the vehicle in question to pass, not only those where it departs and arrives. You can use a feature of sumo-gui to check where your vehicle can arrive: * right click on the start edge to open the context menu * choose "select reachab