Values
([],1) => 0
([],2) => 0
([(0,1)],2) => 0
([],3) => 0
([(1,2)],3) => 0
([(0,2),(1,2)],3) => 0
([(0,1),(0,2),(1,2)],3) => 0
([],4) => 0
([(2,3)],4) => 0
([(1,3),(2,3)],4) => 0
([(0,3),(1,3),(2,3)],4) => 0
([(0,3),(1,2)],4) => 0
([(0,3),(1,2),(2,3)],4) => 0
([(1,2),(1,3),(2,3)],4) => 0
([(0,3),(1,2),(1,3),(2,3)],4) => 0
([(0,2),(0,3),(1,2),(1,3)],4) => 0
([(0,2),(0,3),(1,2),(1,3),(2,3)],4) => 0
([(0,1),(0,2),(0,3),(1,2),(1,3),(2,3)],4) => 0
([],5) => 0
([(3,4)],5) => 0
([(2,4),(3,4)],5) => 0
([(1,4),(2,4),(3,4)],5) => 0
([(0,4),(1,4),(2,4),(3,4)],5) => 0
([(1,4),(2,3)],5) => 0
([(1,4),(2,3),(3,4)],5) => 0
([(0,1),(2,4),(3,4)],5) => 0
([(2,3),(2,4),(3,4)],5) => 0
([(0,4),(1,4),(2,3),(3,4)],5) => 0
([(1,4),(2,3),(2,4),(3,4)],5) => 0
([(0,4),(1,4),(2,3),(2,4),(3,4)],5) => 0
([(1,3),(1,4),(2,3),(2,4)],5) => 0
([(0,4),(1,2),(1,3),(2,4),(3,4)],5) => 0
([(1,3),(1,4),(2,3),(2,4),(3,4)],5) => 0
([(0,4),(1,3),(2,3),(2,4),(3,4)],5) => 0
([(0,4),(1,3),(1,4),(2,3),(2,4),(3,4)],5) => 0
([(0,3),(0,4),(1,3),(1,4),(2,3),(2,4)],5) => 0
([(0,3),(0,4),(1,3),(1,4),(2,3),(2,4),(3,4)],5) => 0
([(0,4),(1,3),(2,3),(2,4)],5) => 0
([(0,1),(2,3),(2,4),(3,4)],5) => 0
([(0,3),(1,2),(1,4),(2,4),(3,4)],5) => 0
([(0,3),(0,4),(1,2),(1,4),(2,4),(3,4)],5) => 0
([(0,3),(0,4),(1,2),(1,4),(2,3)],5) => 0
([(0,1),(0,4),(1,3),(2,3),(2,4),(3,4)],5) => 0
([(0,3),(0,4),(1,2),(1,4),(2,3),(2,4),(3,4)],5) => 0
([(0,4),(1,2),(1,3),(2,3),(2,4),(3,4)],5) => 0
([(1,2),(1,3),(1,4),(2,3),(2,4),(3,4)],5) => 0
([(0,4),(1,2),(1,3),(1,4),(2,3),(2,4),(3,4)],5) => 0
([(0,3),(0,4),(1,2),(1,3),(1,4),(2,3),(2,4),(3,4)],5) => 0
([(0,3),(0,4),(1,2),(1,3),(1,4),(2,3),(2,4)],5) => 0
([(0,2),(0,3),(0,4),(1,2),(1,3),(1,4),(2,4),(3,4)],5) => 0
([(0,2),(0,3),(0,4),(1,2),(1,3),(1,4),(2,3),(2,4),(3,4)],5) => 0
([(0,1),(0,2),(0,3),(0,4),(1,2),(1,3),(1,4),(2,3),(2,4),(3,4)],5) => 1
([],6) => 0
([(4,5)],6) => 0
([(3,5),(4,5)],6) => 0
([(2,5),(3,5),(4,5)],6) => 0
([(1,5),(2,5),(3,5),(4,5)],6) => 0
([(0,5),(1,5),(2,5),(3,5),(4,5)],6) => 0
([(2,5),(3,4)],6) => 0
([(2,5),(3,4),(4,5)],6) => 0
([(1,2),(3,5),(4,5)],6) => 0
([(3,4),(3,5),(4,5)],6) => 0
([(1,5),(2,5),(3,4),(4,5)],6) => 0
([(0,1),(2,5),(3,5),(4,5)],6) => 0
([(2,5),(3,4),(3,5),(4,5)],6) => 0
([(0,5),(1,5),(2,5),(3,4),(4,5)],6) => 0
([(1,5),(2,5),(3,4),(3,5),(4,5)],6) => 0
([(0,5),(1,5),(2,5),(3,4),(3,5),(4,5)],6) => 0
([(2,4),(2,5),(3,4),(3,5)],6) => 0
([(0,5),(1,5),(2,4),(3,4)],6) => 0
([(1,5),(2,3),(2,4),(3,5),(4,5)],6) => 0
([(0,5),(1,5),(2,3),(3,4),(4,5)],6) => 0
([(2,4),(2,5),(3,4),(3,5),(4,5)],6) => 0
([(1,5),(2,4),(3,4),(3,5),(4,5)],6) => 0
([(0,5),(1,5),(2,4),(3,4),(4,5)],6) => 0
([(0,5),(1,5),(2,3),(2,4),(3,5),(4,5)],6) => 0
([(1,5),(2,4),(2,5),(3,4),(3,5),(4,5)],6) => 0
([(0,5),(1,5),(2,4),(3,4),(3,5),(4,5)],6) => 0
([(0,5),(1,5),(2,4),(2,5),(3,4),(3,5),(4,5)],6) => 0
([(1,4),(1,5),(2,4),(2,5),(3,4),(3,5)],6) => 0
([(0,5),(1,4),(2,4),(2,5),(3,4),(3,5)],6) => 0
([(0,5),(1,4),(1,5),(2,4),(2,5),(3,4),(3,5)],6) => 0
([(1,4),(1,5),(2,4),(2,5),(3,4),(3,5),(4,5)],6) => 0
([(0,5),(1,4),(2,4),(2,5),(3,4),(3,5),(4,5)],6) => 0
([(0,5),(1,4),(1,5),(2,4),(2,5),(3,4),(3,5),(4,5)],6) => 0
([(0,4),(0,5),(1,4),(1,5),(2,4),(2,5),(3,4),(3,5)],6) => 0
([(0,4),(0,5),(1,4),(1,5),(2,4),(2,5),(3,4),(3,5),(4,5)],6) => 0
([(0,5),(1,4),(2,3)],6) => 0
([(1,5),(2,4),(3,4),(3,5)],6) => 0
([(0,1),(2,5),(3,4),(4,5)],6) => 0
([(1,2),(3,4),(3,5),(4,5)],6) => 0
([(0,5),(1,4),(2,3),(3,5),(4,5)],6) => 0
([(1,4),(2,3),(2,5),(3,5),(4,5)],6) => 0
([(0,1),(2,5),(3,4),(3,5),(4,5)],6) => 0
([(0,4),(1,5),(2,3),(2,5),(3,5),(4,5)],6) => 0
([(1,4),(1,5),(2,3),(2,5),(3,5),(4,5)],6) => 0
([(0,5),(1,4),(1,5),(2,3),(2,5),(3,5),(4,5)],6) => 0
([(1,4),(1,5),(2,3),(2,5),(3,4)],6) => 0
([(0,5),(1,4),(2,3),(2,4),(3,5),(4,5)],6) => 0
([(1,2),(1,5),(2,4),(3,4),(3,5),(4,5)],6) => 0
([(0,5),(1,2),(1,4),(2,3),(3,5),(4,5)],6) => 0
>>> Load all 250 entries. <<<
search for individual values
searching the database for the individual values of this statistic
/
search for generating function
searching the database for statistics with the same generating function
Description
The skewness of a graph.
For a graph $G$, the skewness of $G$ is the minimum number of edges of $G$ whose removal results in a planar graph.
For a graph $G$, the skewness of $G$ is the minimum number of edges of $G$ whose removal results in a planar graph.
References
[1] Cimikowski, R. J. Graph planarization and skewness MathSciNet:1208914
[2] wikipedia:Planarization
[3] http://mathworld.wolfram.com/GraphSkewness.html
[2] wikipedia:Planarization
[3] http://mathworld.wolfram.com/GraphSkewness.html
Code
@cached_function
def statistic(G):
if G.is_planar():
return 0
bound = G.size()
for e in G.edges(labels=False):
H = G.copy(immutable=False)
H.delete_edge(e)
bound = min(bound, 1+statistic(H.canonical_label().copy(immutable=True)))
return bound
#alternative slower code
def statistic(G):
E = G.edges(labels=False)
m = len(E)
for sublist in reversed(Subsets(E).list()):
if Graph(list(sublist)).is_planar():
return m-len(sublist)
Created
Dec 09, 2015 at 11:47 by Christian Stump
Updated
Dec 23, 2020 at 22:20 by Martin Rubey
searching the database
Sorry, this statistic was not found in the database
or
add this statistic to the database – it's very simple and we need your support!