Constructing all non-isomorphic Hamiltonian graphs on n vertices











up vote
1
down vote

favorite












I've recently been taking a combinatorics class and have become interested in Hamiltonian graphs.



This OEIS entry lists the number of Hamiltonian graphs on $n$ vertices up to $n =12$. However, I am having difficulty finding how these numbers were found. Is it naive to expect an algorithm which actually constructs all the hamiltonian graphs (at least for $n$ not too large) to exist?



Thanks.










share|cite|improve this question




























    up vote
    1
    down vote

    favorite












    I've recently been taking a combinatorics class and have become interested in Hamiltonian graphs.



    This OEIS entry lists the number of Hamiltonian graphs on $n$ vertices up to $n =12$. However, I am having difficulty finding how these numbers were found. Is it naive to expect an algorithm which actually constructs all the hamiltonian graphs (at least for $n$ not too large) to exist?



    Thanks.










    share|cite|improve this question


























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I've recently been taking a combinatorics class and have become interested in Hamiltonian graphs.



      This OEIS entry lists the number of Hamiltonian graphs on $n$ vertices up to $n =12$. However, I am having difficulty finding how these numbers were found. Is it naive to expect an algorithm which actually constructs all the hamiltonian graphs (at least for $n$ not too large) to exist?



      Thanks.










      share|cite|improve this question















      I've recently been taking a combinatorics class and have become interested in Hamiltonian graphs.



      This OEIS entry lists the number of Hamiltonian graphs on $n$ vertices up to $n =12$. However, I am having difficulty finding how these numbers were found. Is it naive to expect an algorithm which actually constructs all the hamiltonian graphs (at least for $n$ not too large) to exist?



      Thanks.







      graph-theory






      share|cite|improve this question















      share|cite|improve this question













      share|cite|improve this question




      share|cite|improve this question








      edited Nov 19 at 12:18

























      asked Nov 19 at 12:01









      Tom Holt

      8761714




      8761714






















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          1
          down vote













          I expect by constructing all graphs, probably using Brendan McKay’s program “geng” and extracting the Hamiltonian ones. Needs quite a few computer cores to do n=12, and I wouldn’t try 13.






          share|cite|improve this answer




























            up vote
            0
            down vote













            The 'filter' approach of generating all non-isomorphic graphs on $n$ vertices is the simplest possibility.



            The OEIS entry references McKay (1996), but I can't see a paper in this list : https://users.cecs.anu.edu.au/~bdm/publications.html for Hamiltonian graphs (only _hypo_hamiltonian graphs).



            Presumably a more efficient approach than filtering would be to extend a Hamiltonian graph on $n$ vertices to one on $n + 1$ vertices, but maybe that is not possible.






            share|cite|improve this answer





















            • There are plenty of ways to do a non-filtering search: for $n=12$ you could start with a 12-cycle and then add edges one at a time, thereby creating a list of all the hamiltonian graphs on 12 edges, 13 edges, 14 edges and so on. The isomorph rejection would need to be smart though.
              – Gordon Royle
              Nov 20 at 3:08











            Your Answer





            StackExchange.ifUsing("editor", function () {
            return StackExchange.using("mathjaxEditing", function () {
            StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
            StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
            });
            });
            }, "mathjax-editing");

            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "69"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            noCode: true, onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3004840%2fconstructing-all-non-isomorphic-hamiltonian-graphs-on-n-vertices%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            1
            down vote













            I expect by constructing all graphs, probably using Brendan McKay’s program “geng” and extracting the Hamiltonian ones. Needs quite a few computer cores to do n=12, and I wouldn’t try 13.






            share|cite|improve this answer

























              up vote
              1
              down vote













              I expect by constructing all graphs, probably using Brendan McKay’s program “geng” and extracting the Hamiltonian ones. Needs quite a few computer cores to do n=12, and I wouldn’t try 13.






              share|cite|improve this answer























                up vote
                1
                down vote










                up vote
                1
                down vote









                I expect by constructing all graphs, probably using Brendan McKay’s program “geng” and extracting the Hamiltonian ones. Needs quite a few computer cores to do n=12, and I wouldn’t try 13.






                share|cite|improve this answer












                I expect by constructing all graphs, probably using Brendan McKay’s program “geng” and extracting the Hamiltonian ones. Needs quite a few computer cores to do n=12, and I wouldn’t try 13.







                share|cite|improve this answer












                share|cite|improve this answer



                share|cite|improve this answer










                answered Nov 19 at 12:28









                Gordon Royle

                459310




                459310






















                    up vote
                    0
                    down vote













                    The 'filter' approach of generating all non-isomorphic graphs on $n$ vertices is the simplest possibility.



                    The OEIS entry references McKay (1996), but I can't see a paper in this list : https://users.cecs.anu.edu.au/~bdm/publications.html for Hamiltonian graphs (only _hypo_hamiltonian graphs).



                    Presumably a more efficient approach than filtering would be to extend a Hamiltonian graph on $n$ vertices to one on $n + 1$ vertices, but maybe that is not possible.






                    share|cite|improve this answer





















                    • There are plenty of ways to do a non-filtering search: for $n=12$ you could start with a 12-cycle and then add edges one at a time, thereby creating a list of all the hamiltonian graphs on 12 edges, 13 edges, 14 edges and so on. The isomorph rejection would need to be smart though.
                      – Gordon Royle
                      Nov 20 at 3:08















                    up vote
                    0
                    down vote













                    The 'filter' approach of generating all non-isomorphic graphs on $n$ vertices is the simplest possibility.



                    The OEIS entry references McKay (1996), but I can't see a paper in this list : https://users.cecs.anu.edu.au/~bdm/publications.html for Hamiltonian graphs (only _hypo_hamiltonian graphs).



                    Presumably a more efficient approach than filtering would be to extend a Hamiltonian graph on $n$ vertices to one on $n + 1$ vertices, but maybe that is not possible.






                    share|cite|improve this answer





















                    • There are plenty of ways to do a non-filtering search: for $n=12$ you could start with a 12-cycle and then add edges one at a time, thereby creating a list of all the hamiltonian graphs on 12 edges, 13 edges, 14 edges and so on. The isomorph rejection would need to be smart though.
                      – Gordon Royle
                      Nov 20 at 3:08













                    up vote
                    0
                    down vote










                    up vote
                    0
                    down vote









                    The 'filter' approach of generating all non-isomorphic graphs on $n$ vertices is the simplest possibility.



                    The OEIS entry references McKay (1996), but I can't see a paper in this list : https://users.cecs.anu.edu.au/~bdm/publications.html for Hamiltonian graphs (only _hypo_hamiltonian graphs).



                    Presumably a more efficient approach than filtering would be to extend a Hamiltonian graph on $n$ vertices to one on $n + 1$ vertices, but maybe that is not possible.






                    share|cite|improve this answer












                    The 'filter' approach of generating all non-isomorphic graphs on $n$ vertices is the simplest possibility.



                    The OEIS entry references McKay (1996), but I can't see a paper in this list : https://users.cecs.anu.edu.au/~bdm/publications.html for Hamiltonian graphs (only _hypo_hamiltonian graphs).



                    Presumably a more efficient approach than filtering would be to extend a Hamiltonian graph on $n$ vertices to one on $n + 1$ vertices, but maybe that is not possible.







                    share|cite|improve this answer












                    share|cite|improve this answer



                    share|cite|improve this answer










                    answered Nov 19 at 13:10









                    gilleain

                    8741713




                    8741713












                    • There are plenty of ways to do a non-filtering search: for $n=12$ you could start with a 12-cycle and then add edges one at a time, thereby creating a list of all the hamiltonian graphs on 12 edges, 13 edges, 14 edges and so on. The isomorph rejection would need to be smart though.
                      – Gordon Royle
                      Nov 20 at 3:08


















                    • There are plenty of ways to do a non-filtering search: for $n=12$ you could start with a 12-cycle and then add edges one at a time, thereby creating a list of all the hamiltonian graphs on 12 edges, 13 edges, 14 edges and so on. The isomorph rejection would need to be smart though.
                      – Gordon Royle
                      Nov 20 at 3:08
















                    There are plenty of ways to do a non-filtering search: for $n=12$ you could start with a 12-cycle and then add edges one at a time, thereby creating a list of all the hamiltonian graphs on 12 edges, 13 edges, 14 edges and so on. The isomorph rejection would need to be smart though.
                    – Gordon Royle
                    Nov 20 at 3:08




                    There are plenty of ways to do a non-filtering search: for $n=12$ you could start with a 12-cycle and then add edges one at a time, thereby creating a list of all the hamiltonian graphs on 12 edges, 13 edges, 14 edges and so on. The isomorph rejection would need to be smart though.
                    – Gordon Royle
                    Nov 20 at 3:08


















                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Mathematics Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    Use MathJax to format equations. MathJax reference.


                    To learn more, see our tips on writing great answers.





                    Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                    Please pay close attention to the following guidance:


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3004840%2fconstructing-all-non-isomorphic-hamiltonian-graphs-on-n-vertices%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    How to change which sound is reproduced for terminal bell?

                    Can I use Tabulator js library in my java Spring + Thymeleaf project?

                    Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents