Routing, Python, Topology, Linear Programming, Basemap.
capacity constraint, so the demand values don’t really matter.) def read_demands(): filename = "demands.txt" fp = open(filename) lines = fp.readlines() # Reading demands from text file in the format # "source" "destination" "capacity" R = {} for line in lines: src, dst, cap = line.split(' ')