Hi,<br><br>I am writing a function tdsp_caller() which will call the core tdsp() function, on lines of boost_dijkstra() function in boost_wrapper.cpp. <br><br>The prototype is like this:<br>int tdsp_wrapper(<br><br> edge_columns_t *edges, <br>
unsigned int edge_count, <br> weight_map_element_t *weight_map_elements, <br> int weight_map_element_count,<br> int start_vertex, <br> int end_vertex,<br> bool directed, <br>
bool has_reverse_cost,<br> path_element_t **path, <br> int *path_count, <br> char **err_msg<br><br> );<br><br>I am confused about the has_reverse_cost and directed variables in this scenario. I have mainly tested for directed graphs till now. I think for undirected graphs, we can add reverse edge while generating graph to make it directed.<br>
<br>Now, since the costs here are the travel_time in the weight_map corresponding to each start_time, do we need a has_reverse_cost variable here? If yes, what would be its significance?<br clear="all"><br>Regards,<br><br>
-- <br>Regards,<br>-Jay Mahadeokar<br><br>