Re-orients a path to be weight-decreasing
best_orientation.Rd
Re-orients a path/cycle, preserving adjacencies so that weights tend to decrease. From specifies the starting point, for cycles only.
Arguments
- path
A vector giving a hamiltonian.
- d
A
dist
, used to provide edge weights.- cycle
If
TRUE
, thepath
is interpreted as a closed path.- path_dir
A function used to evaluate a path start and orientation
- from
Sepcifies the starting point, for cycles only.
References
see overview