NAME

Graph::Undirected::Hamiltonicity::Wolfram - determine the Hamiltonicity of a given graph using the Wolfram Open Cloud.

VERSION

Version 0.01

SYNOPSIS

 use Graph::Undirected::Hamiltonicity::Wolfram;

 my $result;
 eval {
     # $g is a Graph::Undirected
     $result = is_hamiltonian_per_wolfram( $g );
 };
 die $@ if $@;

if ( $result ) {
    say "Graph is Hamiltonian.";
} else {
     say "Graph is not Hamiltonian.";
}

EXPORT

The is_hamiltonian_per_wolfram() subroutine is exported by default.

SUBROUTINES

is_hamiltonian_per_wolfram

Takes: a Graph::Undirected

Returns: 1 if the graph is Hamiltonian according to the Wolfram Open Cloud, 0 if the graph is non-Hamiltonian

Throws: an exception if an error is encountered.

SEE ALSO

WOLFRAM.md

SUPPORT

Please report issues on GitHub.

AUTHOR

Ashwin Dixit, <ashwin at ownlifeful dot com>