Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jun 23 19:20
    cvvergara converted_to_draft #1933
  • Jun 23 19:20
    cvvergara synchronize #1933
  • Jun 23 19:18
    cvvergara synchronize #1933
  • Jun 23 18:49
    cvvergara synchronize #1933
  • Jun 23 17:57
    cvvergara converted_to_draft #1934
  • Jun 23 17:51
    cvvergara opened #1934
  • Jun 23 17:51
    cvvergara milestoned #1934
  • Jun 23 17:43
    cvvergara review_requested #1933
  • Jun 23 17:43
    cvvergara review_requested #1933
  • Jun 23 17:43
    cvvergara review_requested #1933
  • Jun 23 17:43
    cvvergara review_requested #1933
  • Jun 23 17:43
    cvvergara review_requested #1933
  • Jun 23 17:42
    cvvergara review_requested #1933
  • Jun 23 17:42
    cvvergara labeled #1933
  • Jun 23 17:42
    cvvergara opened #1933
  • Jun 23 17:42
    cvvergara milestoned #1933
  • Jun 23 16:38

    cvvergara on master

    (compare)

  • Jun 22 14:59
    himanshu007-creator commented #1911
  • Jun 22 13:32
    cvvergara commented #1883
  • Jun 21 18:16

    cvvergara on develop

    [build] remove accidentally add… (compare)

Vicky Vergara
@cvvergara
we read 1_>2 and save 1450000 in 1->2 and in 2->1
we read 2,1 and save in 2->1
Ashish Kumar
@krashish8
Okay, got it
Vicky Vergara
@cvvergara
ok
yeah, a lot of work is already around there
Ashish Kumar
@krashish8
Yes, I see.
Vicky Vergara
@cvvergara
yea, so that builds a matrix (actually 3 ways from what I read)
so you can add a function to that class that spits out how vroom expects the info
Ashish Kumar
@krashish8
Yes
but you do not need time dependant multipliers version
Ashish Kumar
@krashish8
Yeah, okay
Vicky Vergara
@cvvergara
and there are two ways to read the matrix
one is BIGINT, BIGINT, BIGINT
other is BIGINT BIGINT, TIMESTAMP
hey the name in there is plain :-)
Ashish Kumar
@krashish8
Yes :)
One thing to mention here: Vroom only supports SMALLINT as a matrix index. So, the size of row/column must not exceed the max size of uint16
https://github.com/VROOM-Project/vroom/blob/master/src/structures/vroom/location.h#L22
https://github.com/VROOM-Project/vroom/blob/master/src/structures/typedefs.h#L30
So, using Index = uint16_t;, that's SMALLINT
So, I think that should be:
SMALLINT, SMALLINT, BIGINT
SMALLINT, SMALLINT, TIMESTAMP
for vrp_vroom function.
Vicky Vergara
@cvvergara
That is a huge number
but you can renumber everything, and get the original value
Ashish Kumar
@krashish8
Yeah, that will also work.
Vicky Vergara
@cvvergara
using pseudocode
map<bigint,smallint> mymap
mymap[9999999999999999999999999999] = 1
hmm
backwards
map<smallint, bigint> mymap;
mymap[0] = 9999999999999999999999999999
mymap[1] = 8888888888888888888888888888
Ashish Kumar
@krashish8
Yes, I got the idea.
Vicky Vergara
@cvvergara
actually, if you notice there is already a map on the matrix
Ashish Kumar
@krashish8
Yea
Vicky Vergara
@cvvergara
sortof a map
if the 999999999999999999999 is in position 0 of the vector then the index is 0
if it is in position 0 then the value is less than what is in position 1
Maybe you need a function that returns that vector for further manipulation outside matrix
Ashish Kumar
@krashish8
Yeah
Swapnil Joshi
@swapnilpjoshi
In Task 4 for UN Challenge, I did not understand what I should do in Instead of city_routing use <your-git-nick>-routing. Should I create a new database with a different name and implement pGRouting queries again?
Veenit Kumar
@veenits123
<your-git-nick> == your GitHub username
if GitHub username is xyz the database name should be xyz_routing
Swapnil Joshi
@swapnilpjoshi
Yes, I got that. Should I use Bucaresti_RO.osm again or take any other data to implement pGRouting queries?
Veenit Kumar
@veenits123
You have to load the the same data that is Bucaresti_RO.osm in your new database
Swapnil Joshi
@swapnilpjoshi
Okay Thanks👍
Vicky Vergara
@cvvergara

Meeting

Tomorrow thursday, at mexico's 9am I will be working on downloading the translations of the workshop with @MarPetra. If you want to join you are welcome.
@omshinde @swapnilpjoshi
1 reply
Veenit Kumar
@veenits123
:')