helper.graph_routes

helper.graph_routes(G, P)[source]

Find routes and position of nodes for each edge in P.

The routes of P are returned as the shortest path route on G between each edge.

Parameters:
Returns:

  • Groutes (list) – Routes from G for each edge in P.
  • od_lats (list) – Latitude of origin-destination pairs in P.
  • od_lons (list) – Longitude of origin-destination pairs in P.
  • markers (list) – Marker shapes of nodes based on request type.
  • labels (list) – Marker labels of nodes from request number and type information.