-*-pa-*- first shortest distance