Calculate routing probabilities for a data.frame

get_probability(graphs, start_node, end_node, eta = 1)

Arguments

graphs

list containing the two graphs and a map linking the two to each other.

start_node

Starting node for shortest path route

end_node

Ending node for shortest path route

eta

The parameter controlling the entropy (scale is arbitrary)

Value

list containing the data.frame of the graph elements with the routing probabilities and the estimated probabilistic distance.

Examples

not_run({ graph <- road_data_sample start_pt <- c (11.603,48.163) end_pt <- c (11.608,48.167) pts <- select_vertices_by_coordinates (graph, start_pt, end_pt) route_start <- pts[1] route_end <- pts [2] get_probability (graphs = graph, start_node = route_start, end_node = route_end, eta = 0.6) })