Attempt to find an optimum subway line arrangement given a density map and a weighting metric