spanning tree pathcost method long