>(depth-first 'newark 'san-francisco)
Extending the path (newark)
Extending the path (newark indianapolis)
Extending the path (newark indianapolis chicago-midway)
Extending the path (newark indianapolis chicago-midway detroit)
Extending the path (newark indianapolis chicago-midway bwi)
Extending the path (newark indianapolis chicago-midway bwi hartford)
Extending the path (newark indianapolis chicago-midway bwi hartford providence)
Extending the path (newark indianapolis chicago-midway bwi hartford providence
manchester)
Extending the path (newark indianapolis chicago-midway bwi hartford providence
manchester bar-harbor)
Extending the path (newark indianapolis chicago-midway bwi hartford providence
manchester montreal)
Extending the path (newark indianapolis chicago-midway bwi hartford manchester)
Extending the path (newark indianapolis chicago-midway bwi hartford manchester
providence)
Extending the path (newark indianapolis chicago-midway bwi hartford manchester
bar-harbor)
Extending the path (newark indianapolis chicago-midway bwi hartford manchester
montreal)
Extending the path (newark indianapolis chicago-midway bwi manchester)
Extending the path (newark indianapolis chicago-midway bwi manchester providence)
Extending the path (newark indianapolis chicago-midway bwi manchester providence
hartford)
Extending the path (newark indianapolis chicago-midway bwi manchester hartford)
Extending the path (newark indianapolis chicago-midway bwi manchester hartford
providence)
Extending the path (newark indianapolis chicago-midway bwi manchester bar-harbor)
Extending the path (newark indianapolis chicago-midway bwi manchester montreal)
Extending the path (newark indianapolis chicago-midway bwi providence)
Extending the path (newark indianapolis chicago-midway bwi providence hartford)
Extending the path (newark indianapolis chicago-midway bwi providence hartford
manchester)
Extending the path (newark indianapolis chicago-midway bwi providence hartford
manchester bar-harbor)
Extending the path (newark indianapolis chicago-midway bwi providence hartford
manchester montreal)
Extending the path (newark indianapolis chicago-midway bwi providence manchester)
Extending the path (newark indianapolis chicago-midway bwi providence manchester
hartford)
Extending the path (newark indianapolis chicago-midway bwi providence manchester
bar-harbor)
Extending the path (newark indianapolis chicago-midway bwi providence manchester
montreal)
Extending the path (newark indianapolis chicago-midway bwi las-vegas)
Extending the path (newark indianapolis chicago-midway bwi las-vegas san-diego)
Extending the path (newark indianapolis chicago-midway bwi las-vegas san-diego
los-angeles)
Extending the path (newark indianapolis chicago-midway bwi las-vegas san-diego
los-angeles denver)
Extending the path (newark indianapolis chicago-midway bwi las-vegas san-diego
los-angeles denver chicago-ohare)
Extending the path (newark indianapolis chicago-midway bwi las-vegas san-diego
los-angeles denver chicago-ohare charlotte)
Extending the path (newark indianapolis chicago-midway bwi las-vegas san-diego
los-angeles denver chicago-ohare charlotte savannah)
Extending the path (newark indianapolis chicago-midway bwi las-vegas san-diego
los-angeles denver chicago-ohare charlotte ft-lauderdale)
Extending the path (newark indianapolis chicago-midway bwi las-vegas san-diego
los-angeles denver chicago-ohare charlotte ft-lauderdale west-palm-beach)
Extending the path (newark indianapolis chicago-midway bwi las-vegas san-diego
los-angeles denver chicago-ohare charlotte ft-lauderdale dallas-ftworth)
Extending the path (newark indianapolis chicago-midway bwi las-vegas san-diego
los-angeles denver chicago-ohare charlotte ft-lauderdale dallas-ftworth honolulu)
Extending the path (newark indianapolis chicago-midway bwi las-vegas san-diego
los-angeles denver chicago-ohare charlotte ft-lauderdale dallas-ftworth honolulu
bangkok)
Extending the path (newark indianapolis chicago-midway bwi las-vegas san-diego
los-angeles denver chicago-ohare charlotte ft-lauderdale dallas-ftworth honolulu
bangkok hong-kong)
Extending the path (newark indianapolis chicago-midway bwi las-vegas san-diego
los-angeles denver chicago-ohare charlotte ft-lauderdale dallas-ftworth honolulu
bangkok hong-kong beijing)
Extending the path (newark indianapolis chicago-midway bwi las-vegas san-diego
los-angeles denver chicago-ohare charlotte ft-lauderdale dallas-ftworth honolulu
bangkok hong-kong beijing tokyo)
Final path length is 18
Proceed from newark to indianapolis
then from indianapolis to chicago-midway
then from chicago-midway to bwi
then from bwi to las-vegas
then from las-vegas to san-diego
then from san-diego to los-angeles
then from los-angeles to denver
then from denver to chicago-ohare
then from chicago-ohare to charlotte
then from charlotte to ft-lauderdale
then from ft-lauderdale to dallas-ftworth
then from dallas-ftworth to honolulu
then from honolulu to bangkok
then from bangkok to hong-kong
then from hong-kong to beijing
then from beijing to tokyo
then from tokyo to san-francisco.
((san-francisco
tokyo
beijing
hong-kong
bangkok
honolulu
dallas-ftworth
ft-lauderdale
charlotte
chicago-ohare
denver
los-angeles
san-diego
las-vegas
bwi
chicago-midway
indianapolis
newark))