public class HamiltonianCycle extends Object
| Constructor and Description |
|---|
HamiltonianCycle() |
| Modifier and Type | Method and Description |
|---|---|
static <V,E> List<V> |
getApproximateOptimalForCompleteGraph(SimpleWeightedGraph<V,E> g)
This method will return an approximate minimal traveling salesman tour (hamiltonian cycle).
|
public static <V,E> List<V> getApproximateOptimalForCompleteGraph(SimpleWeightedGraph<V,E> g)
V - the graph vertex typeE - the graph edge typeg - is the graph to find the optimal tour for.Copyright © 2017. All rights reserved.