Package org.jgrapht.alg.tour


package org.jgrapht.alg.tour
Graph tours and Hamiltonian path related algorithms.

This package groups algorithms for traversing every vertex of a graph exactly once. Two related but distinct problems live here:

Deciding whether a Hamiltonian path or cycle exists in a general graph is NP-complete. The exact algorithms in this package run in exponential time in the worst case; the polynomial special cases (such as DagHamiltonianPath) and structural prechecks document their scope individually.