This is a Processing.py project that will procedurally generate unlimited subway maps.
To use this code to generate maps simply follow the instructions here to setup your environment and then run the file subway.pyde
The script will generate images that look like this: