Routing, Python, Topology, Linear Programming, Basemap.
color_map = [] edge_size = [] for i, j in links: if (i, j) in working or (j, i) in working: color_map.append("#BF00BF") edge_size.append(5.0) elif (i, j) in backup or (j, i) in backup: color_map.append("red") edge_size.append(5.0) else: color_map.append("yellow") edge_size.append(0.8) # ... rest is