Sourabh Garg
Sourabh Garg
Explained here https://github.com/pgRouting/pgrouting/issues/1030#issuecomment-390422341 For undirected graph, we can take only positive weights for edges. Hence, there is no utility for Bellman-Ford algorithm.
Please update me, if I am wrong somewhere.
https://github.com/pgRouting/pgrouting/issues/1030#issuecomment-390423208 We can also accept both graphs, for generalization, but if there exists a negative edge, it will output undefined distance for many (or all) vertices.
That is for Dijkstra like functions, which doesn't accept negative weights.
https://github.com/pgRouting/pgrouting/issues/1030#issuecomment-390425829 Yes
Modifications[1]:(included directed parameter with default value) ### All Varients of Signature: pgr_bellman_ford(edges_sql, start_vid, end_vid, directed=TRUE) pgr_bellman_ford(edges_sql, start_vid, end_vids, directed=TRUE) pgr_bellman_ford(edges_sql, start_vids, end_vid, directed=TRUE) pgr_bellman_ford(edges_sql, start_vids, end_vids, directed=TRUE) RETURNS SET OF...
Modifications[2]: (included reverse cost) ### Description of the edges_sql query: **edges_sql:** an SQL query, which should return a set of rows with the following columns: `SELECT id, source, target, cost...
@cvvergara I have modified the above things, here https://github.com/pgRouting/pgrouting/issues/1030#issuecomment-391365980 and https://github.com/pgRouting/pgrouting/issues/1030#issuecomment-391364637. Doesn't We need to make any changes in input and output parameters for the function?
hey, I want to do this task but as I am new to this , would you please provide some help to me how to do it?
Thanks @souravsingh ,I will do the task and will inform when it is done.