first try in getDistance by edge color transition amount