cities


cities, a Python code which works with problems involving intercity distances.

Such problems include:

Licensing:

The information on this web page is distributed under the MIT license.

Languages:

cities is available in a C++ version and a Fortran90 version and a MATLAB version and an Octave version and a Python version.

Related Data and Programs:

cities, a dataset directory which contains a number of city distance datasets.

floyd, a Python code which implements Floyd's algorithm for finding the shortest distance between pairs of nodes on a directed graph.

tsp, a dataset directory which contains test data for the traveling salesperson problem;

Source Code:


Last revised on 06 April 2026.