I just took a exam on graph theory and there was one question that I'm not sure if I answered correctly. Is there any tool I can use to check if a graph is planar or not? The graph was a $K_6$ graph where two vertices had an edge missing. So it had the degree sequence $5\,5\,5\,5\,4\,4$.
Is there a planar graph calculator?
-
1It contains $K_5$ as a subgraph... – 2017-02-16
-
0I know the full K6 has K5 as a subgraph but is that also the case when 2 of its vertices have 1 less degree than usual? if so I answered correctly but I don't know so I want to double check – 2017-02-17
-
0Yes, of course it does. – 2017-02-18
3 Answers
Your graph $K_6-e$ ($K_6$ minus one edge) contains induced subgraphs isomorphic to $K_5$ and it contains spanning subgraphs isomorphic to $K_{3,3}.$
Hint. It doesn't matter which edge you remove from $K_6,$ the resulting graphs are all isomorphic; all edges are equivalent, because of the symmetry of $K_6.$ So, first find your Kuratowski subgraph of $K_6,$ and then decide which edge of $K_6$ to remove.
Kuratowski' Theorem states that a finite graph is planar if and only if it does not contain a subgraph that is a subdivision of K5 (the complete graph on five vertices) or of K3,3 (complete bipartite graph on six vertices, three of which connect to each of the other three, also known as the utility graph).
There is a whole wikipedia page on planarity testing.
The article contains for example the classic path addition method of Hopcroft and Tarjan. You can find it in the LEDA c++ library.