Description Usage Arguments Value
View source: R/findHamiltonianPath.R
Given a network instance, a set of nodes to consider and designated start and end nodes the function heuristically determines a shortest Hamiltonian path from start node to end node considering all active nodes.
1 2 3 4 | findHamiltonianPath(instance,
active.nodes = seq_len(salesperson::getNumberOfNodes(instance) + 2L),
start.id = 1L, dest.id = 2L, more.args = list(on.ls.failure =
"stop"))
|
instance |
[Network] |
active.nodes |
[ |
start.id |
[ |
dest.id |
[ |
[integer
]
@export
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.