Interface HamiltonianPathSearchResult<V,E>

Type Parameters:
V - the graph vertex type
E - the graph edge type

public interface HamiltonianPathSearchResult<V,E>
Tri-state result of a HamiltonianPathAlgorithm search.

A Hamiltonian path search can terminate in three distinct ways:

Callers must consult getStatus() before interpreting an empty getPath(): an empty path may mean either HamiltonianPathSearchResult.Status.PROVEN_ABSENT or HamiltonianPathSearchResult.Status.ABORTED, and the two have very different semantic implications.

Instances are obtained either from a HamiltonianPathAlgorithm implementation or via the found(GraphPath, long), provenAbsent(long), and aborted(long) static factory methods on this interface, which return a default immutable implementation.

Author:
seilat