Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Graph Representation for Road Network

Dear Sir, 

In my case, I upload net file via sumolib and retrieve edges and nodes as shown in the following statements:
net = sumolib.net.readNet('s_w_fixed.net.xml')
edgeID = net.getEdge('L10130')
nodeList=net.getNodes()
By using these nodes and edges, I created graph. But are there any other ways to create graph directly from reading net file via sumo? 
Thank you in advance.

with best regards, 




On Mon, Dec 10, 2018 at 6:45 AM Ei Ei Mon <eieimonimceits@xxxxxxxxx> wrote:
Dear Sir, 

I apologize for my incomplete question. I don't mean as you said. I really sorry for that. I just want to ask help. 
Thank you very much. 

with best regards,  

On Sun, Dec 9, 2018 at 10:37 PM Michael Behrisch <oss@xxxxxxxxxxx> wrote:
Hi,
yes it is possbile to do that with sumolib as written below. Please
write what you already tried and which errors you got. We are not going
to do your homework here ;-)

Best regards,
Michael

Am 08.12.18 um 09:30 schrieb Ei Ei Mon:
> Dear Sir, 
>
> Can I get the directed graph for our whole network directly by using
> sumolib? Sorry I cannot find reference link. Please suggest me. Thank
> you in advance. 
>
> with best regards,
>
> On Tue, Dec 4, 2018 at 1:18 PM Michael Behrisch <oss@xxxxxxxxxxx
> <mailto:oss@xxxxxxxxxxx>> wrote:
>
>     Hi,
>     further information on the sumolib functions is also here:
>     http://www.sumo.dlr.de/pydoc/sumolib.html
>
>     Best regards,
>     Michael
>
>     Am 04.12.18 um 03:20 schrieb Ei Ei Mon:
>     > Dear, 
>     >
>     > Which link can I reference for function of sumolib like retrieve
>     nodes,
>     > edges and connections? 
>     > Thank you in advance. 
>     >
>     > with best regards, 
>     >
>     > On Mon, Dec 3, 2018 at 8:55 PM Ei Ei Mon <eieimonimceits@xxxxxxxxx
>     <mailto:eieimonimceits@xxxxxxxxx>
>     > <mailto:eieimonimceits@xxxxxxxxx
>     <mailto:eieimonimceits@xxxxxxxxx>>> wrote:
>     >
>     >     Thank you very much, I will try it. 
>     >
>     >     On Mon, Dec 3, 2018 at 8:51 PM Michael Behrisch
>     <oss@xxxxxxxxxxx <mailto:oss@xxxxxxxxxxx>
>     >     <mailto:oss@xxxxxxxxxxx <mailto:oss@xxxxxxxxxxx>>> wrote:
>     >
>     >         Hi,
>     >         yes you can build a directed graph from a sumo network.
>     Whether
>     >         it is
>     >         acyclic depends on your input. If you use sumolib you can
>     easily
>     >         access
>     >         all the nodes and edges together with the connectivity,
>     see here for
>     >         examples: http://sumo.dlr.de/wiki/Tools/Sumolib#usage_examples
>     >
>     >         Please be aware that connectivity in the node-edge-graph
>     created
>     >         this
>     >         way does not imply connectivity in the road network because
>     >         there may be
>     >         specific restrictions at nodes (like no left turns
>     allowed) or for
>     >         certain vehicle classes.
>     >
>     >         Best regards,
>     >         Michael
>     >
>     >         Am 02.12.18 um 17:21 schrieb Ei Ei Mon:
>     >         > Dear, 
>     >         >
>     >         > Can I create directed acyclic graph for the whole road
>     network
>     >         in SUMO? 
>     >         > Are there any methods for this purpose?Could you suggest
>     me? 
>     >         >
>     >         > with best regards, 
>     >         >
>     >         > _______________________________________________
>     >         > sumo-user mailing list
>     >         > sumo-user@xxxxxxxxxxx <mailto:sumo-user@xxxxxxxxxxx>
>     <mailto:sumo-user@xxxxxxxxxxx <mailto:sumo-user@xxxxxxxxxxx>>
>     >         > To change your delivery options, retrieve your password, or
>     >         unsubscribe from this list, visit
>     >         > https://www.eclipse.org/mailman/listinfo/sumo-user
>     >         >
>     >
>     >
>
>



Back to the top