[sumo-user] Convert sumolib.net.readnet Graph to Adjacency Matrix

2019-01-27 Thread Bijal
Dear users,

I got a Graph using sumolib.net.readnet.

But my problem is to get graph in the form of matrix like following :

graph = [[-1, 5, 7, 9, 2],
[5, -1, 12, 8, 6],
[7, 12, -1, 13, 21],
[9, 8, 13, -1, 9],
[2, 6, 21, 9, -1]]
Would you please help me with some code or something so that i can get this
kind of graph?

Thanks in advance. Regards.
*:)*
Bijal Varia
___
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


Re: [sumo-user] Departure time of a vehicle given a certain lane

2019-01-27 Thread Graziano Manduzio
Hello Jakob,

I think that's what I was looking for,
Thanks!

best,
Graziano

Il giorno dom 27 gen 2019 alle ore 18:56 Jakob Erdmann <
namdre.s...@gmail.com> ha scritto:

> You can use fcd-output as it will record all vehicles during every time
> step. This gives you information regarding the passed lanes as well as
> first entry into the network. See
> http://sumo.dlr.de/wiki/Simulation/Output/FCDOutput
> For large scenarios, this output can become very big.
> As an alternative you could correlated instant-induction loop output with
> tripinfo output:
>
> http://sumo.dlr.de/wiki/Simulation/Output/Instantaneous_Induction_Loops_Detectors
> http://sumo.dlr.de/wiki/Simulation/Output/TripInfo
>
> regards,
> Jakob
>
> Am So., 27. Jan. 2019 um 18:43 Uhr schrieb Arslane Hamza Cherif <
> arslane.hamzache...@gmail.com>:
>
>> Hello Graziano,
>>
>> Since you did not provide any details regarding your working environment,
>> I guess that is not a problem,
>>
>> In my opinion, you should take a closer look at the TraCI API
>>  which allows you to simulate vehicles
>> with Python, and retrieve many interesting & useful data,
>>
>> For instance, you can retrieve the number of Vehicles which entered an
>> edge of the road network during the last time step with the *last step
>> vehicle number (0x10) function*described here
>> 
>>
>> Best wishes,
>> Arslane
>>
>> Le dim. 27 janv. 2019 à 18:40, Graziano Manduzio <
>> graziano.mandu...@gmail.com> a écrit :
>>
>>> hello,
>>>
>>> I'm a researcher at the university of Florence and I'm using Sumo for my
>>> works.
>>> I'd like to know how it is possible to get as output, data related to
>>> the departure times of all vehicles crossing a given lane that is not an
>>> entering network lane.
>>>
>>> Thanks,
>>> Graziano
>>> ___
>>> 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
>>
> ___
> 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


Re: [sumo-user] Departure time of a vehicle given a certain lane

2019-01-27 Thread Graziano Manduzio
Hi Arslane!

First of all thank you for your response,

I'm using the output command s
to get some information about vehicle routes and compute them by using xml
generated files.
The problem is that I cannot find commands to retrieve information about
the departure times for all the vehicles crossing a specific lane, but just
the departure times for the vehicles entering in the network. I don't need
to retrieve the number of vehicles but the departure time given a certain
lane.

best,
Graziano


Il giorno dom 27 gen 2019 alle ore 18:43 Arslane Hamza Cherif <
arslane.hamzache...@gmail.com> ha scritto:

> Hello Graziano,
>
> Since you did not provide any details regarding your working environment,
> I guess that is not a problem,
>
> In my opinion, you should take a closer look at the TraCI API
>  which allows you to simulate vehicles
> with Python, and retrieve many interesting & useful data,
>
> For instance, you can retrieve the number of Vehicles which entered an
> edge of the road network during the last time step with the *last step
> vehicle number (0x10) function*described here
> 
>
> Best wishes,
> Arslane
>
> Le dim. 27 janv. 2019 à 18:40, Graziano Manduzio <
> graziano.mandu...@gmail.com> a écrit :
>
>> hello,
>>
>> I'm a researcher at the university of Florence and I'm using Sumo for my
>> works.
>> I'd like to know how it is possible to get as output, data related to the
>> departure times of all vehicles crossing a given lane that is not an
>> entering network lane.
>>
>> Thanks,
>> Graziano
>> ___
>> 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
>
___
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


Re: [sumo-user] Departure time of a vehicle given a certain lane

2019-01-27 Thread Jakob Erdmann
You can use fcd-output as it will record all vehicles during every time
step. This gives you information regarding the passed lanes as well as
first entry into the network. See
http://sumo.dlr.de/wiki/Simulation/Output/FCDOutput
For large scenarios, this output can become very big.
As an alternative you could correlated instant-induction loop output with
tripinfo output:
http://sumo.dlr.de/wiki/Simulation/Output/Instantaneous_Induction_Loops_Detectors
http://sumo.dlr.de/wiki/Simulation/Output/TripInfo

regards,
Jakob

Am So., 27. Jan. 2019 um 18:43 Uhr schrieb Arslane Hamza Cherif <
arslane.hamzache...@gmail.com>:

> Hello Graziano,
>
> Since you did not provide any details regarding your working environment,
> I guess that is not a problem,
>
> In my opinion, you should take a closer look at the TraCI API
>  which allows you to simulate vehicles
> with Python, and retrieve many interesting & useful data,
>
> For instance, you can retrieve the number of Vehicles which entered an
> edge of the road network during the last time step with the *last step
> vehicle number (0x10) function*described here
> 
>
> Best wishes,
> Arslane
>
> Le dim. 27 janv. 2019 à 18:40, Graziano Manduzio <
> graziano.mandu...@gmail.com> a écrit :
>
>> hello,
>>
>> I'm a researcher at the university of Florence and I'm using Sumo for my
>> works.
>> I'd like to know how it is possible to get as output, data related to the
>> departure times of all vehicles crossing a given lane that is not an
>> entering network lane.
>>
>> Thanks,
>> Graziano
>> ___
>> 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
>
___
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


Re: [sumo-user] Departure time of a vehicle given a certain lane

2019-01-27 Thread Arslane Hamza Cherif
Hello Graziano,

Since you did not provide any details regarding your working environment, I
guess that is not a problem,

In my opinion, you should take a closer look at the TraCI API
 which allows you to simulate vehicles with
Python, and retrieve many interesting & useful data,

For instance, you can retrieve the number of Vehicles which entered an edge
of the road network during the last time step with the *last step vehicle
number (0x10) function*described here


Best wishes,
Arslane

Le dim. 27 janv. 2019 à 18:40, Graziano Manduzio <
graziano.mandu...@gmail.com> a écrit :

> hello,
>
> I'm a researcher at the university of Florence and I'm using Sumo for my
> works.
> I'd like to know how it is possible to get as output, data related to the
> departure times of all vehicles crossing a given lane that is not an
> entering network lane.
>
> Thanks,
> Graziano
> ___
> 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


[sumo-user] Departure time of a vehicle given a certain lane

2019-01-27 Thread Graziano Manduzio
hello,

I'm a researcher at the university of Florence and I'm using Sumo for my
works.
I'd like to know how it is possible to get as output, data related to the
departure times of all vehicles crossing a given lane that is not an
entering network lane.

Thanks,
Graziano
___
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


Re: [sumo-user] (no subject)

2019-01-27 Thread Arslane Hamza Cherif
Hello Graziano,

Since you did not provide any details regarding your working environment, I
guess that is not a problem,

In my opinion, you should take a closer look at the TraCI API
 which allows you to simulate vehicles with
Python, and retrieve many interesting & useful data,

For instance, you can retrieve the number of Vehicles which entered an edge
of the road network during the last time step with the *last step vehicle
number (0x10) function *described here


Best wishes,
Arslane

Le dim. 27 janv. 2019 à 18:25, Graziano Manduzio <
graziano.mandu...@gmail.com> a écrit :

> hello,
>
> I'm a reasercher at the university of Florence and I'm using Sumo for my
> works.
> I'd like to know how is it possible to get as output, data related to the
> departure times of all vehicles crossing a given lane that is not an
> entering network lanes.
>
> Thanks,
> Graziano
>
> Il giorno dom 27 gen 2019 alle ore 17:56 Graziano Manduzio <
> graziano.mandu...@gmail.com> ha scritto:
>
>> hello,
>>
>> I'm a reasercher at the university of Florence and I'm using Sumo for my
>> works.
>> I'd like to know how is it possible to get as output, data related to the
>> departure times of all vehicles crossing a given lane that is not an
>> entering network lanes.
>>
>> Thanks,
>> Graziano
>>
> ___
> 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


[sumo-user] (no subject)

2019-01-27 Thread Graziano Manduzio
hello,

I'm a reasercher at the university of Florence and I'm using Sumo for my
works.
I'd like to know how is it possible to get as output, data related to the
departure times of all vehicles crossing a given lane that is not an
entering network lanes.

Thanks,
Graziano
___
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