InstancesΒΆ

pdppy.instances

Graphical PDP instance management for a functional application of algorithms.

Prior to use of the algorithms.py methods, any graphical instance, given or generated, must satisfy the request graph criteria: metrically closed and contains the required PDP information stored as graph attributes.

Functions

request_graph(G, s, t, request_pairs) Generates PDP version of input graph G.
random_geo_graph(k[, seed]) Generates a random geometric graph in the unit square.
city_graph(city[, G, k, seed, request_nodes]) Generate an OSMnx graph of city.