powered by
change the distance matrix to cost
matrix2cost(net, distance)
the vector of cost
the network structure
distance matrix