Hard connected instances for Weisfeiler-Lehman test of isomorphism
There are instances when WL algorithm fails. For example graphs G1 and G2 below have the same coloring after WL-1 algorithm.
However, one of these graphs is disconnected. So what are the instances of undirected connected graphs for which WL algorithm fails?
graphs graph-theory combinatorics graph-isomorphism
 |Â
show 4 more comments
There are instances when WL algorithm fails. For example graphs G1 and G2 below have the same coloring after WL-1 algorithm.
However, one of these graphs is disconnected. So what are the instances of undirected connected graphs for which WL algorithm fails?
graphs graph-theory combinatorics graph-isomorphism
Would connecting all vertices to a common vertex work?
â Yuval Filmus
yesterday
1
I guess what you mean is that you add additional node to the graphs above, which is connected to every vertex?
â novadiva
yesterday
1
@YuvalFilmus Epic finished, finally. :)
â David Richerby
yesterday
1
I don't remember WL but don't all $k$-regular $n$-vertex graphs all lead to the same result, thus fail WL?
â PÃ¥l GD
yesterday
1
@PÃ¥lGD Damnit, another short answer.
â David Richerby
8 hours ago
 |Â
show 4 more comments
There are instances when WL algorithm fails. For example graphs G1 and G2 below have the same coloring after WL-1 algorithm.
However, one of these graphs is disconnected. So what are the instances of undirected connected graphs for which WL algorithm fails?
graphs graph-theory combinatorics graph-isomorphism
There are instances when WL algorithm fails. For example graphs G1 and G2 below have the same coloring after WL-1 algorithm.
However, one of these graphs is disconnected. So what are the instances of undirected connected graphs for which WL algorithm fails?
graphs graph-theory combinatorics graph-isomorphism
graphs graph-theory combinatorics graph-isomorphism
edited yesterday
asked yesterday
novadiva
1766
1766
Would connecting all vertices to a common vertex work?
â Yuval Filmus
yesterday
1
I guess what you mean is that you add additional node to the graphs above, which is connected to every vertex?
â novadiva
yesterday
1
@YuvalFilmus Epic finished, finally. :)
â David Richerby
yesterday
1
I don't remember WL but don't all $k$-regular $n$-vertex graphs all lead to the same result, thus fail WL?
â PÃ¥l GD
yesterday
1
@PÃ¥lGD Damnit, another short answer.
â David Richerby
8 hours ago
 |Â
show 4 more comments
Would connecting all vertices to a common vertex work?
â Yuval Filmus
yesterday
1
I guess what you mean is that you add additional node to the graphs above, which is connected to every vertex?
â novadiva
yesterday
1
@YuvalFilmus Epic finished, finally. :)
â David Richerby
yesterday
1
I don't remember WL but don't all $k$-regular $n$-vertex graphs all lead to the same result, thus fail WL?
â PÃ¥l GD
yesterday
1
@PÃ¥lGD Damnit, another short answer.
â David Richerby
8 hours ago
Would connecting all vertices to a common vertex work?
â Yuval Filmus
yesterday
Would connecting all vertices to a common vertex work?
â Yuval Filmus
yesterday
1
1
I guess what you mean is that you add additional node to the graphs above, which is connected to every vertex?
â novadiva
yesterday
I guess what you mean is that you add additional node to the graphs above, which is connected to every vertex?
â novadiva
yesterday
1
1
@YuvalFilmus Epic finished, finally. :)
â David Richerby
yesterday
@YuvalFilmus Epic finished, finally. :)
â David Richerby
yesterday
1
1
I don't remember WL but don't all $k$-regular $n$-vertex graphs all lead to the same result, thus fail WL?
â PÃ¥l GD
yesterday
I don't remember WL but don't all $k$-regular $n$-vertex graphs all lead to the same result, thus fail WL?
â PÃ¥l GD
yesterday
1
1
@PÃ¥lGD Damnit, another short answer.
â David Richerby
8 hours ago
@PÃ¥lGD Damnit, another short answer.
â David Richerby
8 hours ago
 |Â
show 4 more comments
3 Answers
3
active
oldest
votes
Yes, there are non-isomorphic connected graphs that cannot be distinguished by WeisfeilerâLehman. The following construction is due to Cai, Fürer and Immerman (An Optimal Lower Bound on the Number of Variables for Graph Identification, Combinatorica 12(4):389â410, 1992; PDF).
Take any connected, $3$-regular graph $G=(V,E)$. We will produce non-isomorphic graphs $G_parallel$ and $G_times$ from $G$, that are indistinguishable by WeisfeilerâLehman. These will be made by producing a gadget for each vertex of $G$ and, for each edge $xyin E$, connecting the gadgets for $x$ and $y$ by a pair of parallel edges.
The vertices of $G_parallel$ are is defined as follows.
For each $xyin E$, we create four (distinct) vertices, $a_x,y$, $a_y,x$, $b_x,y$ and $b_y,x$.
For each $xin V$, we create a vertex $c_x,S$ for each odd-cardinality subset of $Gamma(x)$ (the neighbours of $x$ in $G$). So, if $x$'s neighbours are $u$, $v$ and $w$, we create vertices $c_x,u$, $c_x,v$, $c_x,w$ and $c_x,u,v,w$.
The edges of $G_parallel$ are defined as follows. For each edge $xyin E$, we add:
- the two edges $a_x,ya_y,x$ and $b_x,yb_y,x$;
- the edges $a_x,yc_x,S$ for each $S$ such that $yin S$;
- the edges $b_x,yc_x,S$ for each $S$ such that $ynotin S$.
Note that $G$ is undirected so if $xyin E$, then $yxin E$ also, and we follow the above rules twice for each edge of $G$.
Now, let $xy$ be any edge in $G$ and let $G_xy$ be the graph made from $G_parallel$ by deleting the edges $a_x,ya_y,x$ and $b_x,yb_y,x$ and replacing them with the "cross" edges $a_x,yb_y,x$ and $b_x,ya_y,x$. The following lemma is the key point of the construction.
Lemma 1. For any edges $uv,xyin E$, the graphs $G_uv$ and $G_xy$ are isomorphic.
Proof sketch. You can move the cross edge around the graph in the following sense. For any pair of edges $ij,jkin E$, there's an isomorphism of $G_ij$ that exchanges $a_j,i$ and $b_j,i$ and exchanges $a_j,k$ and $b_j,k$. This isomorphism is a permutation of the vertices $c_j,S$, and it fixes every other vertex in $G_ij$. If you draw the fragment of the graph corresponding to vertex $j$ and its incident edges, the isomorphism should be pretty obvious.
This means that $G_ijsimeq G_jk$, because the isomorphism "uncrosses" the edge $ij$ and "crosses" the edge $jk$. Since $G$ is connected, it contains a path whose first edge is $uv$ and whose last edge is $xy$, and we can use the isomorphisms corresponding to each adjacent pair of edges in this path to move the cross in $G_uv$ to $xy$. $Box$
By Lemma 1, we're entitled to use the name $G_times$ for an arbitrary graph $G_xy$. We now have the graphs $G_parallel$ and $G_times$; it remains to show that they're non-isomorphic and that they're indistinguishable to WeisfeilerâLehman.
Lemma 2. For any connected, 3-regular graph $G$, we have $G_parallel notsimeq G_times$.
Proof sketch. It turns out that the only isomorphisms of $G_parallel$ and $G_times$ are isomorphisms induced by isomorphisms of $G$, and isomorphisms of the form used in the proof of Lemma 1. But no such isomorphism can transform $G_times$ into $G_parallel$ because $G_times$ has a cross edge and $G_parallel$ does not. $Box$
Now, indistinguishability. WeisfeilerâLehman is definable in so-called "fixed-point logic with counting." This is first-order logic plus:
counting quantifiers: for each natural number $n$, you can write $exists^geq nx,varphi(x)$, meaning "There exist at least $n$ values of $x$ that satisfy $varphi$." This can already be expressed in ordinary first-order logic, just by saying that there exist distinct $x_1, dots, x_n$ that all satisfy $varphi$, but the (rather subtle) point here is that the counting quantifier only uses just one variable, whereas the "pure" first-order expression uses $n$ distinct variables.
inductive definitions. These let you build up a relation $R$ as follows. You start with $R=emptyset$. Then, you add to $R$ all the tuples that satisfy a formula $varphi$, and keep doing that until you run out of tuples to add. $varphi$ itself can depend on $R$, so you can build up some interesting things.
In particular, you can build up an equivalence relation corresponding to the colour-classes of WeisfeilerâLehman. The counting quantifiers let you talk about the numbe of neighbours of each colour, and the inductive definitions let you recursively refine the colouring based on the number of neighbours of each colour in the previous step.
A separator of a graph $G=(V,E)$ is a set $Ssubseteq V$ such that no component of $G-S$ has more than $|V|/2$ vertices. In the following, I say "less than about $2k$" because I'm silently translating from fixed-point logic with counting to so-called "infinitary logic with counting", which roughly doubles the number of variables. I don't remember the exact details, and it's not important enough to hunt them down.
Theorem 3. Let $varphi$ be a formula of fixed-point logic with counting, using $k$ distinct variables. If $G$ is a graph with no separator of size less than about $2k$, then $varphi$ cannot distinguish $G_parallel$ from $G_times$.
Proof sketch. Very roughly speaking, while you're evaluating the formula $varphi$ on $G_parallel$ or $G_times$, you might need to consider $k$ vertices as being the value of some variables at the current iteration of an inductive construction and $k$ more variables as being the value of the variables at the previous iteration. The fact that $G$ has no small separators means that, even if we fix those vertices, we can still move the cross around in a large component of the rest of the graph, without the formula "knowing" that we've done that, so the formula can never "see" the cross, so it can never tell the difference between the graph with the cross and the graph without it. $Box$
For any fixed $d$, $d$-dimensional WeisfeilerâLehman can be expressed as a formula of fixed-point logic with counting, using some number $k$ of variables ($kapprox 2d$ is enough, as I recall). Since that formula can't tell the difference between the non-isomorphic graphs $G_parallel$ and $G_times$ as long as $G$ has no small separators, nor can WeisfeilerâLehman.
Guess who got a PhD doing this kind of stuff...
add a comment |Â
Connect all vertices to a common one.
add a comment |Â
One epic answer by David, one simplest answer by Yuval. However, there is no graphs. I mean, actual visual graphs.
Here is the famous beautiful negative instances to 1-dimensional Weisfeiler-Lehman test of graph isomorphism. The Shrikhande graph is at the left and the $4times 4$ rook's graph is at the right.
The above picture is taken from mathematicaladd.wordpress.com.
Both graphs are strongly regular with parameters $16,6,2,2$. In the Shrikhande graph, the neighbors of each vertex form a cycle of six vertices. In the $4times 4$ rook's graph, the neighbors of each vertex form two disjoint triangles.
add a comment |Â
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
Yes, there are non-isomorphic connected graphs that cannot be distinguished by WeisfeilerâLehman. The following construction is due to Cai, Fürer and Immerman (An Optimal Lower Bound on the Number of Variables for Graph Identification, Combinatorica 12(4):389â410, 1992; PDF).
Take any connected, $3$-regular graph $G=(V,E)$. We will produce non-isomorphic graphs $G_parallel$ and $G_times$ from $G$, that are indistinguishable by WeisfeilerâLehman. These will be made by producing a gadget for each vertex of $G$ and, for each edge $xyin E$, connecting the gadgets for $x$ and $y$ by a pair of parallel edges.
The vertices of $G_parallel$ are is defined as follows.
For each $xyin E$, we create four (distinct) vertices, $a_x,y$, $a_y,x$, $b_x,y$ and $b_y,x$.
For each $xin V$, we create a vertex $c_x,S$ for each odd-cardinality subset of $Gamma(x)$ (the neighbours of $x$ in $G$). So, if $x$'s neighbours are $u$, $v$ and $w$, we create vertices $c_x,u$, $c_x,v$, $c_x,w$ and $c_x,u,v,w$.
The edges of $G_parallel$ are defined as follows. For each edge $xyin E$, we add:
- the two edges $a_x,ya_y,x$ and $b_x,yb_y,x$;
- the edges $a_x,yc_x,S$ for each $S$ such that $yin S$;
- the edges $b_x,yc_x,S$ for each $S$ such that $ynotin S$.
Note that $G$ is undirected so if $xyin E$, then $yxin E$ also, and we follow the above rules twice for each edge of $G$.
Now, let $xy$ be any edge in $G$ and let $G_xy$ be the graph made from $G_parallel$ by deleting the edges $a_x,ya_y,x$ and $b_x,yb_y,x$ and replacing them with the "cross" edges $a_x,yb_y,x$ and $b_x,ya_y,x$. The following lemma is the key point of the construction.
Lemma 1. For any edges $uv,xyin E$, the graphs $G_uv$ and $G_xy$ are isomorphic.
Proof sketch. You can move the cross edge around the graph in the following sense. For any pair of edges $ij,jkin E$, there's an isomorphism of $G_ij$ that exchanges $a_j,i$ and $b_j,i$ and exchanges $a_j,k$ and $b_j,k$. This isomorphism is a permutation of the vertices $c_j,S$, and it fixes every other vertex in $G_ij$. If you draw the fragment of the graph corresponding to vertex $j$ and its incident edges, the isomorphism should be pretty obvious.
This means that $G_ijsimeq G_jk$, because the isomorphism "uncrosses" the edge $ij$ and "crosses" the edge $jk$. Since $G$ is connected, it contains a path whose first edge is $uv$ and whose last edge is $xy$, and we can use the isomorphisms corresponding to each adjacent pair of edges in this path to move the cross in $G_uv$ to $xy$. $Box$
By Lemma 1, we're entitled to use the name $G_times$ for an arbitrary graph $G_xy$. We now have the graphs $G_parallel$ and $G_times$; it remains to show that they're non-isomorphic and that they're indistinguishable to WeisfeilerâLehman.
Lemma 2. For any connected, 3-regular graph $G$, we have $G_parallel notsimeq G_times$.
Proof sketch. It turns out that the only isomorphisms of $G_parallel$ and $G_times$ are isomorphisms induced by isomorphisms of $G$, and isomorphisms of the form used in the proof of Lemma 1. But no such isomorphism can transform $G_times$ into $G_parallel$ because $G_times$ has a cross edge and $G_parallel$ does not. $Box$
Now, indistinguishability. WeisfeilerâLehman is definable in so-called "fixed-point logic with counting." This is first-order logic plus:
counting quantifiers: for each natural number $n$, you can write $exists^geq nx,varphi(x)$, meaning "There exist at least $n$ values of $x$ that satisfy $varphi$." This can already be expressed in ordinary first-order logic, just by saying that there exist distinct $x_1, dots, x_n$ that all satisfy $varphi$, but the (rather subtle) point here is that the counting quantifier only uses just one variable, whereas the "pure" first-order expression uses $n$ distinct variables.
inductive definitions. These let you build up a relation $R$ as follows. You start with $R=emptyset$. Then, you add to $R$ all the tuples that satisfy a formula $varphi$, and keep doing that until you run out of tuples to add. $varphi$ itself can depend on $R$, so you can build up some interesting things.
In particular, you can build up an equivalence relation corresponding to the colour-classes of WeisfeilerâLehman. The counting quantifiers let you talk about the numbe of neighbours of each colour, and the inductive definitions let you recursively refine the colouring based on the number of neighbours of each colour in the previous step.
A separator of a graph $G=(V,E)$ is a set $Ssubseteq V$ such that no component of $G-S$ has more than $|V|/2$ vertices. In the following, I say "less than about $2k$" because I'm silently translating from fixed-point logic with counting to so-called "infinitary logic with counting", which roughly doubles the number of variables. I don't remember the exact details, and it's not important enough to hunt them down.
Theorem 3. Let $varphi$ be a formula of fixed-point logic with counting, using $k$ distinct variables. If $G$ is a graph with no separator of size less than about $2k$, then $varphi$ cannot distinguish $G_parallel$ from $G_times$.
Proof sketch. Very roughly speaking, while you're evaluating the formula $varphi$ on $G_parallel$ or $G_times$, you might need to consider $k$ vertices as being the value of some variables at the current iteration of an inductive construction and $k$ more variables as being the value of the variables at the previous iteration. The fact that $G$ has no small separators means that, even if we fix those vertices, we can still move the cross around in a large component of the rest of the graph, without the formula "knowing" that we've done that, so the formula can never "see" the cross, so it can never tell the difference between the graph with the cross and the graph without it. $Box$
For any fixed $d$, $d$-dimensional WeisfeilerâLehman can be expressed as a formula of fixed-point logic with counting, using some number $k$ of variables ($kapprox 2d$ is enough, as I recall). Since that formula can't tell the difference between the non-isomorphic graphs $G_parallel$ and $G_times$ as long as $G$ has no small separators, nor can WeisfeilerâLehman.
Guess who got a PhD doing this kind of stuff...
add a comment |Â
Yes, there are non-isomorphic connected graphs that cannot be distinguished by WeisfeilerâLehman. The following construction is due to Cai, Fürer and Immerman (An Optimal Lower Bound on the Number of Variables for Graph Identification, Combinatorica 12(4):389â410, 1992; PDF).
Take any connected, $3$-regular graph $G=(V,E)$. We will produce non-isomorphic graphs $G_parallel$ and $G_times$ from $G$, that are indistinguishable by WeisfeilerâLehman. These will be made by producing a gadget for each vertex of $G$ and, for each edge $xyin E$, connecting the gadgets for $x$ and $y$ by a pair of parallel edges.
The vertices of $G_parallel$ are is defined as follows.
For each $xyin E$, we create four (distinct) vertices, $a_x,y$, $a_y,x$, $b_x,y$ and $b_y,x$.
For each $xin V$, we create a vertex $c_x,S$ for each odd-cardinality subset of $Gamma(x)$ (the neighbours of $x$ in $G$). So, if $x$'s neighbours are $u$, $v$ and $w$, we create vertices $c_x,u$, $c_x,v$, $c_x,w$ and $c_x,u,v,w$.
The edges of $G_parallel$ are defined as follows. For each edge $xyin E$, we add:
- the two edges $a_x,ya_y,x$ and $b_x,yb_y,x$;
- the edges $a_x,yc_x,S$ for each $S$ such that $yin S$;
- the edges $b_x,yc_x,S$ for each $S$ such that $ynotin S$.
Note that $G$ is undirected so if $xyin E$, then $yxin E$ also, and we follow the above rules twice for each edge of $G$.
Now, let $xy$ be any edge in $G$ and let $G_xy$ be the graph made from $G_parallel$ by deleting the edges $a_x,ya_y,x$ and $b_x,yb_y,x$ and replacing them with the "cross" edges $a_x,yb_y,x$ and $b_x,ya_y,x$. The following lemma is the key point of the construction.
Lemma 1. For any edges $uv,xyin E$, the graphs $G_uv$ and $G_xy$ are isomorphic.
Proof sketch. You can move the cross edge around the graph in the following sense. For any pair of edges $ij,jkin E$, there's an isomorphism of $G_ij$ that exchanges $a_j,i$ and $b_j,i$ and exchanges $a_j,k$ and $b_j,k$. This isomorphism is a permutation of the vertices $c_j,S$, and it fixes every other vertex in $G_ij$. If you draw the fragment of the graph corresponding to vertex $j$ and its incident edges, the isomorphism should be pretty obvious.
This means that $G_ijsimeq G_jk$, because the isomorphism "uncrosses" the edge $ij$ and "crosses" the edge $jk$. Since $G$ is connected, it contains a path whose first edge is $uv$ and whose last edge is $xy$, and we can use the isomorphisms corresponding to each adjacent pair of edges in this path to move the cross in $G_uv$ to $xy$. $Box$
By Lemma 1, we're entitled to use the name $G_times$ for an arbitrary graph $G_xy$. We now have the graphs $G_parallel$ and $G_times$; it remains to show that they're non-isomorphic and that they're indistinguishable to WeisfeilerâLehman.
Lemma 2. For any connected, 3-regular graph $G$, we have $G_parallel notsimeq G_times$.
Proof sketch. It turns out that the only isomorphisms of $G_parallel$ and $G_times$ are isomorphisms induced by isomorphisms of $G$, and isomorphisms of the form used in the proof of Lemma 1. But no such isomorphism can transform $G_times$ into $G_parallel$ because $G_times$ has a cross edge and $G_parallel$ does not. $Box$
Now, indistinguishability. WeisfeilerâLehman is definable in so-called "fixed-point logic with counting." This is first-order logic plus:
counting quantifiers: for each natural number $n$, you can write $exists^geq nx,varphi(x)$, meaning "There exist at least $n$ values of $x$ that satisfy $varphi$." This can already be expressed in ordinary first-order logic, just by saying that there exist distinct $x_1, dots, x_n$ that all satisfy $varphi$, but the (rather subtle) point here is that the counting quantifier only uses just one variable, whereas the "pure" first-order expression uses $n$ distinct variables.
inductive definitions. These let you build up a relation $R$ as follows. You start with $R=emptyset$. Then, you add to $R$ all the tuples that satisfy a formula $varphi$, and keep doing that until you run out of tuples to add. $varphi$ itself can depend on $R$, so you can build up some interesting things.
In particular, you can build up an equivalence relation corresponding to the colour-classes of WeisfeilerâLehman. The counting quantifiers let you talk about the numbe of neighbours of each colour, and the inductive definitions let you recursively refine the colouring based on the number of neighbours of each colour in the previous step.
A separator of a graph $G=(V,E)$ is a set $Ssubseteq V$ such that no component of $G-S$ has more than $|V|/2$ vertices. In the following, I say "less than about $2k$" because I'm silently translating from fixed-point logic with counting to so-called "infinitary logic with counting", which roughly doubles the number of variables. I don't remember the exact details, and it's not important enough to hunt them down.
Theorem 3. Let $varphi$ be a formula of fixed-point logic with counting, using $k$ distinct variables. If $G$ is a graph with no separator of size less than about $2k$, then $varphi$ cannot distinguish $G_parallel$ from $G_times$.
Proof sketch. Very roughly speaking, while you're evaluating the formula $varphi$ on $G_parallel$ or $G_times$, you might need to consider $k$ vertices as being the value of some variables at the current iteration of an inductive construction and $k$ more variables as being the value of the variables at the previous iteration. The fact that $G$ has no small separators means that, even if we fix those vertices, we can still move the cross around in a large component of the rest of the graph, without the formula "knowing" that we've done that, so the formula can never "see" the cross, so it can never tell the difference between the graph with the cross and the graph without it. $Box$
For any fixed $d$, $d$-dimensional WeisfeilerâLehman can be expressed as a formula of fixed-point logic with counting, using some number $k$ of variables ($kapprox 2d$ is enough, as I recall). Since that formula can't tell the difference between the non-isomorphic graphs $G_parallel$ and $G_times$ as long as $G$ has no small separators, nor can WeisfeilerâLehman.
Guess who got a PhD doing this kind of stuff...
add a comment |Â
Yes, there are non-isomorphic connected graphs that cannot be distinguished by WeisfeilerâLehman. The following construction is due to Cai, Fürer and Immerman (An Optimal Lower Bound on the Number of Variables for Graph Identification, Combinatorica 12(4):389â410, 1992; PDF).
Take any connected, $3$-regular graph $G=(V,E)$. We will produce non-isomorphic graphs $G_parallel$ and $G_times$ from $G$, that are indistinguishable by WeisfeilerâLehman. These will be made by producing a gadget for each vertex of $G$ and, for each edge $xyin E$, connecting the gadgets for $x$ and $y$ by a pair of parallel edges.
The vertices of $G_parallel$ are is defined as follows.
For each $xyin E$, we create four (distinct) vertices, $a_x,y$, $a_y,x$, $b_x,y$ and $b_y,x$.
For each $xin V$, we create a vertex $c_x,S$ for each odd-cardinality subset of $Gamma(x)$ (the neighbours of $x$ in $G$). So, if $x$'s neighbours are $u$, $v$ and $w$, we create vertices $c_x,u$, $c_x,v$, $c_x,w$ and $c_x,u,v,w$.
The edges of $G_parallel$ are defined as follows. For each edge $xyin E$, we add:
- the two edges $a_x,ya_y,x$ and $b_x,yb_y,x$;
- the edges $a_x,yc_x,S$ for each $S$ such that $yin S$;
- the edges $b_x,yc_x,S$ for each $S$ such that $ynotin S$.
Note that $G$ is undirected so if $xyin E$, then $yxin E$ also, and we follow the above rules twice for each edge of $G$.
Now, let $xy$ be any edge in $G$ and let $G_xy$ be the graph made from $G_parallel$ by deleting the edges $a_x,ya_y,x$ and $b_x,yb_y,x$ and replacing them with the "cross" edges $a_x,yb_y,x$ and $b_x,ya_y,x$. The following lemma is the key point of the construction.
Lemma 1. For any edges $uv,xyin E$, the graphs $G_uv$ and $G_xy$ are isomorphic.
Proof sketch. You can move the cross edge around the graph in the following sense. For any pair of edges $ij,jkin E$, there's an isomorphism of $G_ij$ that exchanges $a_j,i$ and $b_j,i$ and exchanges $a_j,k$ and $b_j,k$. This isomorphism is a permutation of the vertices $c_j,S$, and it fixes every other vertex in $G_ij$. If you draw the fragment of the graph corresponding to vertex $j$ and its incident edges, the isomorphism should be pretty obvious.
This means that $G_ijsimeq G_jk$, because the isomorphism "uncrosses" the edge $ij$ and "crosses" the edge $jk$. Since $G$ is connected, it contains a path whose first edge is $uv$ and whose last edge is $xy$, and we can use the isomorphisms corresponding to each adjacent pair of edges in this path to move the cross in $G_uv$ to $xy$. $Box$
By Lemma 1, we're entitled to use the name $G_times$ for an arbitrary graph $G_xy$. We now have the graphs $G_parallel$ and $G_times$; it remains to show that they're non-isomorphic and that they're indistinguishable to WeisfeilerâLehman.
Lemma 2. For any connected, 3-regular graph $G$, we have $G_parallel notsimeq G_times$.
Proof sketch. It turns out that the only isomorphisms of $G_parallel$ and $G_times$ are isomorphisms induced by isomorphisms of $G$, and isomorphisms of the form used in the proof of Lemma 1. But no such isomorphism can transform $G_times$ into $G_parallel$ because $G_times$ has a cross edge and $G_parallel$ does not. $Box$
Now, indistinguishability. WeisfeilerâLehman is definable in so-called "fixed-point logic with counting." This is first-order logic plus:
counting quantifiers: for each natural number $n$, you can write $exists^geq nx,varphi(x)$, meaning "There exist at least $n$ values of $x$ that satisfy $varphi$." This can already be expressed in ordinary first-order logic, just by saying that there exist distinct $x_1, dots, x_n$ that all satisfy $varphi$, but the (rather subtle) point here is that the counting quantifier only uses just one variable, whereas the "pure" first-order expression uses $n$ distinct variables.
inductive definitions. These let you build up a relation $R$ as follows. You start with $R=emptyset$. Then, you add to $R$ all the tuples that satisfy a formula $varphi$, and keep doing that until you run out of tuples to add. $varphi$ itself can depend on $R$, so you can build up some interesting things.
In particular, you can build up an equivalence relation corresponding to the colour-classes of WeisfeilerâLehman. The counting quantifiers let you talk about the numbe of neighbours of each colour, and the inductive definitions let you recursively refine the colouring based on the number of neighbours of each colour in the previous step.
A separator of a graph $G=(V,E)$ is a set $Ssubseteq V$ such that no component of $G-S$ has more than $|V|/2$ vertices. In the following, I say "less than about $2k$" because I'm silently translating from fixed-point logic with counting to so-called "infinitary logic with counting", which roughly doubles the number of variables. I don't remember the exact details, and it's not important enough to hunt them down.
Theorem 3. Let $varphi$ be a formula of fixed-point logic with counting, using $k$ distinct variables. If $G$ is a graph with no separator of size less than about $2k$, then $varphi$ cannot distinguish $G_parallel$ from $G_times$.
Proof sketch. Very roughly speaking, while you're evaluating the formula $varphi$ on $G_parallel$ or $G_times$, you might need to consider $k$ vertices as being the value of some variables at the current iteration of an inductive construction and $k$ more variables as being the value of the variables at the previous iteration. The fact that $G$ has no small separators means that, even if we fix those vertices, we can still move the cross around in a large component of the rest of the graph, without the formula "knowing" that we've done that, so the formula can never "see" the cross, so it can never tell the difference between the graph with the cross and the graph without it. $Box$
For any fixed $d$, $d$-dimensional WeisfeilerâLehman can be expressed as a formula of fixed-point logic with counting, using some number $k$ of variables ($kapprox 2d$ is enough, as I recall). Since that formula can't tell the difference between the non-isomorphic graphs $G_parallel$ and $G_times$ as long as $G$ has no small separators, nor can WeisfeilerâLehman.
Guess who got a PhD doing this kind of stuff...
Yes, there are non-isomorphic connected graphs that cannot be distinguished by WeisfeilerâLehman. The following construction is due to Cai, Fürer and Immerman (An Optimal Lower Bound on the Number of Variables for Graph Identification, Combinatorica 12(4):389â410, 1992; PDF).
Take any connected, $3$-regular graph $G=(V,E)$. We will produce non-isomorphic graphs $G_parallel$ and $G_times$ from $G$, that are indistinguishable by WeisfeilerâLehman. These will be made by producing a gadget for each vertex of $G$ and, for each edge $xyin E$, connecting the gadgets for $x$ and $y$ by a pair of parallel edges.
The vertices of $G_parallel$ are is defined as follows.
For each $xyin E$, we create four (distinct) vertices, $a_x,y$, $a_y,x$, $b_x,y$ and $b_y,x$.
For each $xin V$, we create a vertex $c_x,S$ for each odd-cardinality subset of $Gamma(x)$ (the neighbours of $x$ in $G$). So, if $x$'s neighbours are $u$, $v$ and $w$, we create vertices $c_x,u$, $c_x,v$, $c_x,w$ and $c_x,u,v,w$.
The edges of $G_parallel$ are defined as follows. For each edge $xyin E$, we add:
- the two edges $a_x,ya_y,x$ and $b_x,yb_y,x$;
- the edges $a_x,yc_x,S$ for each $S$ such that $yin S$;
- the edges $b_x,yc_x,S$ for each $S$ such that $ynotin S$.
Note that $G$ is undirected so if $xyin E$, then $yxin E$ also, and we follow the above rules twice for each edge of $G$.
Now, let $xy$ be any edge in $G$ and let $G_xy$ be the graph made from $G_parallel$ by deleting the edges $a_x,ya_y,x$ and $b_x,yb_y,x$ and replacing them with the "cross" edges $a_x,yb_y,x$ and $b_x,ya_y,x$. The following lemma is the key point of the construction.
Lemma 1. For any edges $uv,xyin E$, the graphs $G_uv$ and $G_xy$ are isomorphic.
Proof sketch. You can move the cross edge around the graph in the following sense. For any pair of edges $ij,jkin E$, there's an isomorphism of $G_ij$ that exchanges $a_j,i$ and $b_j,i$ and exchanges $a_j,k$ and $b_j,k$. This isomorphism is a permutation of the vertices $c_j,S$, and it fixes every other vertex in $G_ij$. If you draw the fragment of the graph corresponding to vertex $j$ and its incident edges, the isomorphism should be pretty obvious.
This means that $G_ijsimeq G_jk$, because the isomorphism "uncrosses" the edge $ij$ and "crosses" the edge $jk$. Since $G$ is connected, it contains a path whose first edge is $uv$ and whose last edge is $xy$, and we can use the isomorphisms corresponding to each adjacent pair of edges in this path to move the cross in $G_uv$ to $xy$. $Box$
By Lemma 1, we're entitled to use the name $G_times$ for an arbitrary graph $G_xy$. We now have the graphs $G_parallel$ and $G_times$; it remains to show that they're non-isomorphic and that they're indistinguishable to WeisfeilerâLehman.
Lemma 2. For any connected, 3-regular graph $G$, we have $G_parallel notsimeq G_times$.
Proof sketch. It turns out that the only isomorphisms of $G_parallel$ and $G_times$ are isomorphisms induced by isomorphisms of $G$, and isomorphisms of the form used in the proof of Lemma 1. But no such isomorphism can transform $G_times$ into $G_parallel$ because $G_times$ has a cross edge and $G_parallel$ does not. $Box$
Now, indistinguishability. WeisfeilerâLehman is definable in so-called "fixed-point logic with counting." This is first-order logic plus:
counting quantifiers: for each natural number $n$, you can write $exists^geq nx,varphi(x)$, meaning "There exist at least $n$ values of $x$ that satisfy $varphi$." This can already be expressed in ordinary first-order logic, just by saying that there exist distinct $x_1, dots, x_n$ that all satisfy $varphi$, but the (rather subtle) point here is that the counting quantifier only uses just one variable, whereas the "pure" first-order expression uses $n$ distinct variables.
inductive definitions. These let you build up a relation $R$ as follows. You start with $R=emptyset$. Then, you add to $R$ all the tuples that satisfy a formula $varphi$, and keep doing that until you run out of tuples to add. $varphi$ itself can depend on $R$, so you can build up some interesting things.
In particular, you can build up an equivalence relation corresponding to the colour-classes of WeisfeilerâLehman. The counting quantifiers let you talk about the numbe of neighbours of each colour, and the inductive definitions let you recursively refine the colouring based on the number of neighbours of each colour in the previous step.
A separator of a graph $G=(V,E)$ is a set $Ssubseteq V$ such that no component of $G-S$ has more than $|V|/2$ vertices. In the following, I say "less than about $2k$" because I'm silently translating from fixed-point logic with counting to so-called "infinitary logic with counting", which roughly doubles the number of variables. I don't remember the exact details, and it's not important enough to hunt them down.
Theorem 3. Let $varphi$ be a formula of fixed-point logic with counting, using $k$ distinct variables. If $G$ is a graph with no separator of size less than about $2k$, then $varphi$ cannot distinguish $G_parallel$ from $G_times$.
Proof sketch. Very roughly speaking, while you're evaluating the formula $varphi$ on $G_parallel$ or $G_times$, you might need to consider $k$ vertices as being the value of some variables at the current iteration of an inductive construction and $k$ more variables as being the value of the variables at the previous iteration. The fact that $G$ has no small separators means that, even if we fix those vertices, we can still move the cross around in a large component of the rest of the graph, without the formula "knowing" that we've done that, so the formula can never "see" the cross, so it can never tell the difference between the graph with the cross and the graph without it. $Box$
For any fixed $d$, $d$-dimensional WeisfeilerâLehman can be expressed as a formula of fixed-point logic with counting, using some number $k$ of variables ($kapprox 2d$ is enough, as I recall). Since that formula can't tell the difference between the non-isomorphic graphs $G_parallel$ and $G_times$ as long as $G$ has no small separators, nor can WeisfeilerâLehman.
Guess who got a PhD doing this kind of stuff...
answered yesterday
David Richerby
65.9k15100190
65.9k15100190
add a comment |Â
add a comment |Â
Connect all vertices to a common one.
add a comment |Â
Connect all vertices to a common one.
add a comment |Â
Connect all vertices to a common one.
Connect all vertices to a common one.
answered yesterday
Yuval Filmus
189k12177340
189k12177340
add a comment |Â
add a comment |Â
One epic answer by David, one simplest answer by Yuval. However, there is no graphs. I mean, actual visual graphs.
Here is the famous beautiful negative instances to 1-dimensional Weisfeiler-Lehman test of graph isomorphism. The Shrikhande graph is at the left and the $4times 4$ rook's graph is at the right.
The above picture is taken from mathematicaladd.wordpress.com.
Both graphs are strongly regular with parameters $16,6,2,2$. In the Shrikhande graph, the neighbors of each vertex form a cycle of six vertices. In the $4times 4$ rook's graph, the neighbors of each vertex form two disjoint triangles.
add a comment |Â
One epic answer by David, one simplest answer by Yuval. However, there is no graphs. I mean, actual visual graphs.
Here is the famous beautiful negative instances to 1-dimensional Weisfeiler-Lehman test of graph isomorphism. The Shrikhande graph is at the left and the $4times 4$ rook's graph is at the right.
The above picture is taken from mathematicaladd.wordpress.com.
Both graphs are strongly regular with parameters $16,6,2,2$. In the Shrikhande graph, the neighbors of each vertex form a cycle of six vertices. In the $4times 4$ rook's graph, the neighbors of each vertex form two disjoint triangles.
add a comment |Â
One epic answer by David, one simplest answer by Yuval. However, there is no graphs. I mean, actual visual graphs.
Here is the famous beautiful negative instances to 1-dimensional Weisfeiler-Lehman test of graph isomorphism. The Shrikhande graph is at the left and the $4times 4$ rook's graph is at the right.
The above picture is taken from mathematicaladd.wordpress.com.
Both graphs are strongly regular with parameters $16,6,2,2$. In the Shrikhande graph, the neighbors of each vertex form a cycle of six vertices. In the $4times 4$ rook's graph, the neighbors of each vertex form two disjoint triangles.
One epic answer by David, one simplest answer by Yuval. However, there is no graphs. I mean, actual visual graphs.
Here is the famous beautiful negative instances to 1-dimensional Weisfeiler-Lehman test of graph isomorphism. The Shrikhande graph is at the left and the $4times 4$ rook's graph is at the right.
The above picture is taken from mathematicaladd.wordpress.com.
Both graphs are strongly regular with parameters $16,6,2,2$. In the Shrikhande graph, the neighbors of each vertex form a cycle of six vertices. In the $4times 4$ rook's graph, the neighbors of each vertex form two disjoint triangles.
answered 16 hours ago
Apass.Jack
6,8411533
6,8411533
add a comment |Â
add a comment |Â
Thanks for contributing an answer to Computer Science 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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcs.stackexchange.com%2fquestions%2f102062%2fhard-connected-instances-for-weisfeiler-lehman-test-of-isomorphism%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
Would connecting all vertices to a common vertex work?
â Yuval Filmus
yesterday
1
I guess what you mean is that you add additional node to the graphs above, which is connected to every vertex?
â novadiva
yesterday
1
@YuvalFilmus Epic finished, finally. :)
â David Richerby
yesterday
1
I don't remember WL but don't all $k$-regular $n$-vertex graphs all lead to the same result, thus fail WL?
â PÃ¥l GD
yesterday
1
@PÃ¥lGD Damnit, another short answer.
â David Richerby
8 hours ago