3

If we make a regular polygon with n vertices (n edges) and triangulate on the inside with n-3 edges, then triangulate on the outside with (n-3) edges (or draw dotted lines inside again), a Maximal Planar Graph is formed. Edges shouldn't be repeated and there's no loops or directions.

How many distinct graphs of this type are there?

It's connected to an earlier question where it was asked 'How many Distinct Maximal Planar Graphs are there? How many distinct Maximal Planar Graphs exist with $n$ vertices?

Will Orrick gave the OEIS numbers A000109. It was then wondered if there was a known formula for those numbers or bounds on them. It's conjectured that graphs of the type in this question might constitute most Maximal Planar Graphs, so a formula for the 'polygon' types might be an approximate formula or a lower bound for all types of Maximal Planar Graphs.

Dividing the polygon on the inside can be done in C(n-2) ways, where C(n) are the Catalan numbers A000108, so a connection was looked for - and A000109 seem to be close to C(n-2)*2^(n-13) at least for n=9 to 23.

So, the answer to this question would be of interest and any thoughts on connecting the A000108 and A000109 numbers. Lots of ways have been tried so far, e.g. since the next Catalan number can be formed by adding the product of ones before, e.g. C(4) = C(3)*C(1) + C(2)*C(2) + C(1)*C(3), perhaps something similar happens for A000109, or by incorporating numbers from both sequences. Lots of coincidences (probably) have been found including the 233 number in A000109 say X(10) is C(9-2) - the sum of the Catalan numbers before it.

Think I'm going to go crazy looking for patterns any longer! Any suggestions please!

RobPratt
  • 50,938
John Hunter
  • 691
  • 4
  • 13
  • 1
    The catalan recursion for $C(4)$ is only coincidentally what you have. It should be $C(0)C(3)+C(1)C(2)+C(2)C(1)+C(3)(C(2)$ where $C(n)=(1/(n+1))\binom{2n}{n}$ for $n \ge 0.$ – coffeemath Feb 05 '21 at 14:34
  • Oops in above comment last term is $C(3)C(0).$ – coffeemath Feb 05 '21 at 15:28
  • OK, thankyou coffeemath – John Hunter Feb 05 '21 at 16:55
  • 1
    It seems the number of ways to triangulate the outside of the regular polygon of $n$ sides would also be $C(n-2).$ So my query is, how are the two triangulations "put together" to get what you're counting? Is the square of $C(n-2)$ related to your number of distinct such "inside/outside triangulations"? Or when do you count two such as distinct? [Maybe some explicit drawings to illustrate it for small $n.$] – coffeemath Feb 05 '21 at 17:07
  • 1
    Yes an upper limit is C(n-2) squared. The Catalan numbers give 14 different triangulations of e.g. a regular hexagon, but there are only really 3 different looking ones, i.e. where the inside added edges make an equilateral triangle, where they fan out from a single node and where they make a 'Z'. With outer edges added it's reduced to 3*C(6-2) for the hexagon, but it reduces much more and according to the A000109 numbers there are only 2 types of graphs which are distinct for n=6, (non-isomorphic?). Knowing how to leave out repetitions seems hard. How do we do diagrams here? – John Hunter Feb 05 '21 at 18:12
  • @coffeemath If a graph can be drawn on a sphere so that all faces are triangles, then it is a maximal planar graph. If the edge set of such a graph includes an $n$-gon then it is Hamiltonian. The idea is to start with an $n$-gon on a sphere and triangulate both hemispheres to obtain a drawing of a maximal planar Hamiltonian graph. But these graphs should not have duplicate edges: if vertices $v$ and $u$ are joined in one triangulation, they must not be joined in the other. More critically, however, we want only one graph from each isomorphism class. – Will Orrick Feb 05 '21 at 18:24
  • Yes, that's a similar way to describe the question. Do you think all graphs with a Hamiltonian cycle can be redrawn as the polygon type described? - if so it's equivalent to asking how many Hamiltonian Maximal Planar Graphs are there and the polygon representation might help to decide. – John Hunter Feb 05 '21 at 18:45
  • 2
    Every graph that can be drawn using your prescription is Hamiltonian. (The polygon is a Hamiltonian circuit.) And every maximal planar Hamiltonian graph can be drawn using your prescription: draw the graph as a triangulation of the sphere. The Hamiltonian circuit then divides the sphere into two regions, each of which is a triangulated polygon, – Will Orrick Feb 05 '21 at 21:06
  • Ok, thanks, is it known how many of these types of graphs exist for a given n? – John Hunter Feb 05 '21 at 21:38
  • This question https://math.stackexchange.com/questions/467733/how-many-non-isomorphic-ways-a-convex-polygon-with-n-2-sides-can-be-cut-into came to the conclusion that the number of distinct (not equivalent by rotations or reflections) ways to divide the polygon on the inside is https://oeis.org/A000207 1,1,1,3,4,12,27,82... (3 for the hexagon), so perhaps the number of distinct Hamiltonian Maximal Planar Graphs will be connected to these (for the inside edges) and the Catalan numbers (for the outside edges) – John Hunter Feb 06 '21 at 11:27
  • Maybe it's time to start drawing the diagrams, feel free to join in anyone, the plan is to do one 'n' per day up to n=8 or 9, to see if a pattern can be built up. It should follow the A000109 (109) numbers until n=11 when the first non-Hamiltonian occurs. For n=4 from there is one possibility for the inside edge from (A000207) , 1 non repeating (NR) for the outside edge so 11=1. For n=5 only 1 Fan (F) for the inside edges (F is from one node), from 207. Two possible NR Fs for the outside, divide by 2 for reflection symmetry. 12/2=2. For n=6, 3 ways from (207) for the inside edges... – John Hunter Feb 06 '21 at 13:19
  • correction: (1*2/2=1) – John Hunter Feb 06 '21 at 13:26
  • It's been worrying me for a while that the conjecture about most maximal planar graphs being of "polygon" type might not be correct, and I am now becoming more and more convinced that, in fact, the non-Hamiltonian graphs come to dominate as the number of vertices grows. I'll try to add an answer soon detailing my thoughts, but, roughly, the idea is this: if two maximal planar graphs are joined by gluing along a triangular face, the result is a maximal planar graph. The non-Hamiltonian Goldner-Harary graph is the result of gluing a tetrahedron to each face of a triangular bipyramid, but one... – Will Orrick Feb 19 '21 at 14:07
  • ...could glue anything, even an enormous maximal planar graph, instead of a tetrahedron, and the result would be the same: a non-Hamiltonian graph. (This follows by Misha Lavrov's argument here.) Turning things around, suppose we have a random, 1000000-vertex maximal planar graph and we glue a Goldner-Harary graph to its surface--just a small extra bump on the surface. That is enough to render the graph non-Hamiltonian. My feeling is that in a large graph, the probability that it... – Will Orrick Feb 19 '21 at 14:14
  • ...doesn't have at least one "bad" bump shrinks to zero. – Will Orrick Feb 19 '21 at 14:14
  • Does your black box program tell you how many Hamiltonian ones there are for n=12,13...or how many of a given degree (you seemed to get the answer 29 earlier for n=10, degree 6)? If so you'll be able to see if the proportion is increasing. My program is likely to become too slow or computer not have enough memory above about n=12, although the method can limit the maximum number of non-Hamiltonian for n=12, depending on how many Hamiltonian it finds. It confirmed the maximum of 1 for n=11. – John Hunter Feb 20 '21 at 15:28
  • ...Also, not sure about whether the conjecture is right or wrong. However the graphs must be distinct. Perhaps, even if it's likely that a large graph e.g 611 vertices might be made up a 600 one, with a n=11 non-H one glued on, lots of these 600+11 might be isomorphic. the the proportion of non-H is also got by dividing by the number of n=611 graphs which might be way more than the number of 600+11 add 599+12non-H etc... – John Hunter Feb 20 '21 at 16:06
  • 1
    I recently got as high $n=13$. There are 2/7595 non-Hamiltonian graphs for $n=12$ and 30/49566 for $n=13$, which shows no clear trend. My black box is the is_isomorphic() method in SageMath. I'm not sure whether it uses nauty or something else behind the scenes. Anyway, the experts have beaten us to it. Typing 0,0,0,1,2,30 into the OEIS turns up A007030. The complementary set is enumerated by A115340, although the two sequences weren't linked until yesterday. Starting at $n=14$ there's a smooth upward trend; at $n=21$ the ratio is about 1/335. I'm writing an answer with more details. – Will Orrick Feb 20 '21 at 16:24
  • Yes, the A007030 are multiplying by about 9 each time, but the 9 number is decreasing, the A000109 numbers multiply by about 8 each time, but the 8 is increasing, so it's hard to say... – John Hunter Feb 20 '21 at 23:05

3 Answers3

1

This is too long to be a comment, but only provides a modest reduction in the $C_{n-2}^2$ upper bound.

For $n\ge3$ let $a_n$ be the number of unordered pairs of triangulations of the $n$-gon with no common diagonals. Let $g(x)=a_3x^3+a_4x^4+a_5x^5+a_6x^6+\ldots$ be the generating function. The first few coefficients are $a_3=\frac{1}{2}$, $a_4=1$, $a_5=5$, $a_6=34$ (see A257887). The non-integer value of $a_3$ makes sense in light of the property that there is one unordered pair of triangulations for every set of two ordered pairs of triangulations in which the triangulations trade places, except in the case of the triangle, where the only choice is for both triangulations to be empty. The OEIS omits the $a_3$ term. To understand why $a_6=34$ let $T$, $Z$, and $F$ denote the triangle, Z-shaped, and fan triangulations described in one of your comments. Then there is one $TT$ pair, six $TF$ pairs, $12$ $ZF$ pairs, nine $ZZ$ pairs, and six $FF$ pairs. The $TT$ pair and three of the $ZZ$ pairs give the octahedron; all others give the graph $K_6$ minus a path of length $4$ described by Dan Uznanski in a comment here. This example shows that one must account, not only for rotations and reflections of a pair of triangulations, but also for different choice Hamiltonian circuit, which can result in different triangulation pairs for the same graph.

Danièle Huguet and Dov Tamari in La structure polyédrale des complexes de parenthésages, J. Combin. Inform. System Sci., 3(2):69–81, 1978 showed that the generating function satisfies $$ x=\sum_{j=0}^\infty C_j^2\left(x-\frac{2}{x}g(x)\right)^{j+1}. $$ In other words, $g(x)$ can be obtained by inverting the formal power series $$ \phi(x)=\sum_{j=0}^\infty C_j^2x^{j+1}, $$ which means finding the formal power series $u(x)$ such that $\phi(u(x))=x$. Then $g(x)=\frac{x}{2}(x-u(x))$. I have not been able to find a copy of Huguet and Tamari's paper, but a derivation is also given in

Dimbinaina Ralaivaosaona, Jean Bernoulli Ravelomanana, and Stephan Wagner, Counting Planar Tanglegrams, in James Allen Fill and Mark Daniel Ward eds., 29th International Conference on Probabilistic, Combinatorial and Asymptotic Methods for the Analysis of Algorithms (AofA 2018), Leibniz International Proceedings in Informatics (LIPIcs) 110:32:1–32:18, 2018.

Ralaivaosaona, Ravelomanana, and Wagner point out that $\phi(x)$ is the series expansion of a complete elliptic integral and use this to do an asymptotic analysis. They find that $a_n$ grows like a constant times $n^{-3}\left(\frac{4\pi}{4-\pi}\right)^n$. The upper bound $C_{n-2}^2$ grows like a constant times $n^{-3}\cdot16^n$. The revised upper bound has slower growth since $\frac{4\pi}{4-\pi}\approx14.64$.

Will Orrick
  • 19,218
  • Thanks for the answer Will, there is also the bound of the A000207 numbers for the inside edges times by C(n-2) for the outer edges... – John Hunter Feb 07 '21 at 10:23
  • Yes, I noticed your comments about that. In the OEIS entry M. F. Hasler gives an asymptotic formula for A000207 that differs from that of the Catalan numbers by only a linear factor. So that upper bound would grow like $n^{-4}\cdot16^n$. As you've noted, to match the apparent growth of A000109 we need to get the exponential growth factor down to something like $8$ or $9$, which seems like a big jump from where we are now. – Will Orrick Feb 07 '21 at 15:44
  • Yes, thanks, but a start... – John Hunter Feb 07 '21 at 19:00
0

Here is the work so far. In what follows the number of distinct Hamiltonian Maximal Planar Graphs with n vertices is $X(n)$. It should follow A000109 https://oeis.org/A000109/list up to $n=11$ when the first non Hamiltonian occurs.

Also used are the number of distinct ways to divide a polygon https://oeis.org/A000207 . $A(n)$ will be a number from this list corresponding to the number of distinct ways to triangulate a polygon with $n$ sides (offset by $2$ from the list in the link) . There is a formula for these, not written here.

Since a Maximal Planar Hamiltonian graph can be represented by a regular polygon triangulated by 'inside' edges and also triangulated again with 'outside' edges, without repeating edges, the following is suggested. $$ \begin{array}{c|cc} n & A(n) & X(n)\\ \hline 3 & 1 & 1\\ 4 & 1 & 1\\ 5 & 1 & 1\\ 6 & 3 & 2\\ 7 & 4 & 5\\ 8 & 12 & 14\\ 9 & 27 & 50\\ 10 & 82 & 233\\ 11 & 228 & 1249\\ \end{array} $$

Dividing the pentagon on the inside can be done in $1$ way with a fan $F$ from one vertex. there is only one distinct way to do it on the outside, another fan, $1\times1=1$

For the hexagon let's start with the maximum number of edges possible from either set of edges, leaving a vertex, it's $3$, making a fan $F$. Let the hexagon be $ABCDEF$. If the $3$ inside (say) edges leave node $B$. The outside edges can't repeat any of these, one of the outside edges must also join $A$ to $C$, to ensure it's triangulated and not repeat edges. This leaves a pentagon to triangulate by the outside edges, but using one less edge (one was used for $AC$) - the number of distinct ways for that is $A(5)$

There are two remaining ways to divide the hexagon with inside edges, a triangle $T$ and a $Z$ shape. Next the case where the maximum number from one set of edges leaving a vertex is $2$. If we draw diagrams using the $2$ remaining ways to divide the hexagon but not using a fan $F$, we find an extra distinct case from this, so $X(6)=A(5)+1$.


In a similar way using tracing paper, with the $4$ ways to divide a heptagon, it's found that $X(7) = A(6) + 2$. The $A(6)$ is the number using a Fan of $4$ edges at one corner of the heptagon, similar to above, and the $2$ comes by combining the other $3$ ways, each of the $2$ new cases came when one of the set of edges has $3$ edges from one set leaving a vertex. The case where the maximum number is $2$ edges leaving a vertex gave no extra distinct cases.

So a pattern is now being looked for of this type $$ X(n) = A(n-1)+aX(n-1)+bX(n-2)+cX(n-3)\ldots $$ where $a$, $b$, $c$ etc...are integer coefficients.

The pattern isn't clear and might involve the factors of the number $n$, perhaps the Catalan numbers? So a definite reason isn't given here for the coefficients, perhaps it's coincidence, but it's possible to build up the $X(n)$ in this way e.g. $$ \begin{array}{r|rcl|l} n & X(n) &\!=\!& A(n-1)+aX(n-1)+\ldots &\\ \hline 6 & 2 &\!\!=\!\!& 1 + 1 &\\ 7 & 5 &\!\!=\!\!& 3 + 2 &\\ 8 & 14 &\!\!=\!\!& 4 + 2\times5 &\\ 9 & 50 &\!\!=\!\!& 12 + 2\times14 + 2\times5 &\\ 10 & 233 &\!\!=\!\!& 27 + 3\times50 + 4\times14 &\\ 11 & 1248 &\!\!=\!\!& 82 + 4\times233 + 3\times50 + 6\times14 & \text{1248 instead of 1249 as there is one}\\ & & & & \text{non Hamiltonian graph for $n=11$.} \end{array} $$

Will Orrick
  • 19,218
John Hunter
  • 691
  • 4
  • 13
  • Thanks for editing Will, looks a lot better, since putting the answer in, there has been some work done with the aid of a computer program. It seems that the A(n-1) part is right, but the other parts might be coincidence. In fact the X(n) numbers can be built up e.g. X(8) is from n(5)+n(4)+n(3). Where the n(5) is the number of possible graphs when the maximum extra added edges from a vertex is 5, which is A(7) for n(5)=4 , +8 for n(4) and + 2 for n(3). X(9) = 50 = A(8) + n(5) +n(4) +n(3) = 12+23+14+1. X(10) = 27 + 84 + 92+28+1 (1 missing, computer didn't find...) – John Hunter Feb 08 '21 at 19:31
0

Here is a partial answer.

In what follows the number of distinct Hamiltonian Maximal Planar Graphs with n vertices is $X(n)$. It should follow A000109 https://oeis.org/A000109/list up to $n=11$ when the first non Hamiltonian occurs.

Also used are the number of distinct ways to divide a polygon https://oeis.org/A000207 . $A(n)$ , offset by 2 from the list, will be a number from this list corresponding to the number of distinct ways to triangulate a polygon with $n$ sides There is a formula for these, not written here.

Since a Maximal Planar Hamiltonian graph can be represented by a regular polygon triangulated by 'inside' edges and also triangulated again with 'outside' edges, without repeating edges, the following is suggested.

For example the hexagon. Let's start with the maximum number of added edges leaving a vertex, it's $3$, making a fan $F$. Let the hexagon be $ABCDEF$. If the $3$ inside (say) edges leave node $B$. The outside edges can't repeat any of these, one of the outside edges must also join $A$ to $C$, to ensure it's triangulated and not repeat edges. This leaves a pentagon to triangulate by the outside edges, but using one less edge (one was used for $AC$) - the number of distinct ways for that is $A(5)$

So we would expect $X(6)$ to be $A(5) + e(2)$ where the $e(2)$ is the number of graphs where the maximum number of edges leaving any node is 2. For the hexagon $e(2)$ is 1. After $n=6$ the minimum maximum number of edges leaving any node is 3.

$X(7) = A(6) + e(3)$
$X(8) = A(7) + e(4) + e(3)$,

From $n=13$ onwards the minimum maximum number of edges leaving any node is 4

Here is a table of $A(n)$ and $X(n)$. \begin{array}{c|cc} n & A(n) & X(n)\\ \hline 3 & 1 & 1\\ 4 & 1 & 1\\ 5 & 1 & 1\\ 6 & 3 & 2\\ 7 & 4 & 5\\ 8 & 12 & 14\\ 9 & 27 & 50\\ 10 & 82 & 233\\ 11 & 228 & 1249\\ \end{array}

The pattern for the $e(i)$ isn't clear but some have been found using a computer program. $$ X(6)=1+1 $$ $$ X(7)=3+2 $$ $$ X(8)=4+8+2 $$ $$ X(9)=12+23+14+1 $$ $$ X(10)=27+84+92+29+1 $$ $$ X(11)=82+281+508+333+44+0 $$

the $X(11)$ total is one short of the A000109 numbers so the program confirms that there is at most one non-Hamiltonian graph for n=11. One graph is [was], missing for n=10 which the computer couldn’t find for Perhaps there's an undiscovered non-Hamiltonian graph with 10 nodes! [edit 14/02/2021, thanks to Will Orrick's suggestion of improving isomorphism testing, it's been found]

Now for the cases where one of the 'fan' is missing, e.g the $e(3)$ for the heptagon. The inner edges are now 3 for the fan, from, say vertex $B$, and one somewhere else. The outer edges cannot include the missing fan element (that would cause the maximum number leaving a vertex to be bigger than 3), so must include $AC$, leaving a shape with 6 sides to triangulate (with 3 more edges) which we would expect is again to do with $A(6)$, but this time with extra restrictions. The remaining outer edges can't triangulate this remaining hexagon in a way that repeats the one inner edge that's inside it, or causes more than 3 edges from a vertex.

Even if many edges were missing from a fan of inner edges coming from vertex $B$, none of them can be used by the outer edges without causing too many edges to leave a vertex, so again $AC$ is needed as one of the outer edges. If for example we were trying to find $e(16)$ for $X(30)$, then it would still seem to involve $A(29)$, but with many extras and restrictions. Extras meaning we might have to reintroduce reflections and rotations (of distinct triangulations of the remaining 29 a-gon), restrictions due to keeping the maximum number of edges leaving a vertex to 16 (other cases would be covered by $e(17)$ etc...) and also avoiding the 11 inside edges which can be inside the 29 a-gon.

Alternative system:

Now also found are a set of $e(i)$, where the maximum must come from at least one set of triangulations, inner or outer (but not both combined). i.e. one that was previously $e(5)$ in the above, having a vertex of maximum degree 7, might count as $e(4)$ below, if its connections are 2 in the polygon, 4 inner connections and one outer connection.

For this system,

$$ X(6)=1+1 $$ $$ X(7)=3+2 $$ $$ X(8)=4+7+3 $$ $$ X(9)=12+22+15+1 $$ $$ X(10)=27+77+96+32+1 $$ $$ X(11)=82+261+498+361+46+0 $$

$X(6)$ and $X(7)$ are the same as before, $X(8)$ is the first different one. It is the graph with the lowest number of vertices that can't be drawn in polygon form, where the edges from a vertex of maximum degree can all be inside edges. It has an interesting structure (below) with lots of symmetry. The $X(11)$ numbers were from a run of 600,000 graphs, it's possible there could be some 'shuffling left' by one or two (for rows above n=10), but since the numbers didn't change during the second half of the run it's likely that they are exact.

The $X(8)$ first different one, can be drawn as a regular octagon (vertices 1-8) with these inside edges (1,3), (1,4), (1,5), (5,7), (5,8) and these outside edges, which are best dawn inside again with dotted lines to appreciate the symmetry (3,5), (3,6), (3,7), (7,1), (7,2).

On the computer program and the missing graph...

Despite repeated runs, one of the n=10 Hamiltonian graphs is missing. The program finds 232 instead of 233. Perhaps there is an undiscovered n=10 non-Hamiltonian graph! To help others check this and in other ways, here are the details. [Edit: the list is complete now, thanks Will].

To check for isomorphism the program makes an ID set and used two 'tests' initially. Test1 was the sum of the squares of the degrees of all nodes, typically about 250 for n=10. If two graphs are different for Test1, they are not isomorphic.

The second test assigned a value test2(i) to each node, made up of summing, for each connecting node, j, (excluding itself) deg(j)*[11+deg(j)-deg(i)]. Where deg(j) is the degree of node j. Test2 is the sum of all these values. If two graphs are different for Test2, again,they are not isomorphic. the 11 is random to increase the size and make it less likely that the same number can be got by summing a different set of numbers the -deg(i) is included for a similar reason.

So for two graphs to be isomporphic they should have identical Test1 and Test2.

This system didn't distinguish and find all 50 for n=9, it found 48. So another test, Test3, was introduced.

The third test assigned a value test3(i) to each node, made up of summing, for each connecting node, j, (excluding itself) test2(j)*[test2(j)+2-deg(i)]. Test3 is the sum of all these values.

Now all 50 were found for n=9, but 232 out of 233 for n=10. So Test4 was introduced, which is like Test3, test4(i) is by summing test3(j)*[test3(j)+2-deg(i)] and Test4 is the sum of these. [Edit, after Will's 'edge ID' was added, all 233 have been found].

John Hunter
  • 691
  • 4
  • 13