Has this notion of product of graphs been studied? - MathOverflow most recent 30 from http://mathoverflow.net 2013-05-24T11:32:00Z http://mathoverflow.net/feeds/question/29982 http://www.creativecommons.org/licenses/by-nc/2.5/rdf http://mathoverflow.net/questions/29982/has-this-notion-of-product-of-graphs-been-studied Has this notion of product of graphs been studied? Cap Khoury 2010-06-29T23:30:28Z 2010-07-03T21:42:26Z <p>Let $n\geq 2$ be a positive integer. For the purposes of this definition, let a <em>colored graph</em> be a finite undirected graph in which each edge is colored with one of $n$ colors so that no vertex is incident with two edges of the same color. (Without loss of generality, we suppose that every vertex is incident with <em>exactly</em> one edge of each color; add loops wherever necessary.) If $G_1$ and $G_2$ are two colored graphs, we define a product $H=G_1\times G_2$ as follows.</p> <ul> <li>The vertices of $H$ are the ordered pairs of vertices $(v_1,v_2)$, where $v_i$ is a vertex of $G_i$.</li> <li>If $(v_1,w_1)$ and $(v_2,w_2)$ are edges of the same color in $G_1$ and $G_2$, respectively, then there is an edge (also of the same color) between $(v_1,v_2)$ and $(w_1,w_2)$ in $H$. </li> </ul> <p><strong>Examples.</strong> Consider $n=3$, the simplest interesting case (and the one that interests me most). Let $K'_3$ be the complete graph on three vertices with an extra loop at each vertex, and let $K_4$ be the complete graph on four vertices. (There is essentially only one way to to color each of these graphs.)</p> <ul> <li><code>$K'_3\times K'_3$</code> has two components: one is a copy of <code>$K'_3$</code> and the other has six vertices.</li> <li><code>$K'_3\times K_4$</code> is a connected graph with twelve vertices.</li> <li><code>$K_4\times K_4$</code> has four components, each of which is a copy of <code>$K_4$</code>.</li> </ul> <p>Does this have a name? Has it been studied? It seems plausible enough to me that this may be a well-studied thing. At the moment, I'm especially interested in necessary/sufficient criteria for the product of connected colored graphs to be connected, or more generally an efficient way to count (or at least estimate) the number of components of the product, but any information that exists is reasonably likely to be useful to me.</p> <p>My motivation here comes from some problems I'm working on in combinatorial number theory. I have various (colored) graphs that I associate to a positive integer $N$, and in many cases the graph corresponding to $MN$ is the product in this sense of the graphs corresponding to $M$ and $N$ whenever $\gcd(M,N)=1$. The graphs at prime powers are much simpler than the general case.</p> http://mathoverflow.net/questions/29982/has-this-notion-of-product-of-graphs-been-studied/30007#30007 Answer by David Eppstein for Has this notion of product of graphs been studied? David Eppstein 2010-06-30T05:39:09Z 2010-06-30T05:39:09Z <p>If these were digraphs with one outgoing edge of each color at each vertex rather than undirected graphs with one incident edge of each color at each vertex, then this construction would be the Cartesian product of deterministic finite automata. It's useful for showing that regular languages are closed under union and intersection.</p> http://mathoverflow.net/questions/29982/has-this-notion-of-product-of-graphs-been-studied/30012#30012 Answer by Michael Burge for Has this notion of product of graphs been studied? Michael Burge 2010-06-30T06:11:08Z 2010-06-30T06:16:40Z <p>Section 6.3 in "Algebraic Graph Theory" by Chris Godsil and Gordon Royle covers products of graphs; 6.6 covers colorings of these products. I also vaguely remember a reference to it in Douglas West's "Introduction to Graph Theory" when he was constructing a counterexample to something involving colorings, but it's been too long since I took my Graph Theory course out of that book and I couldn't find it.</p> http://mathoverflow.net/questions/29982/has-this-notion-of-product-of-graphs-been-studied/30013#30013 Answer by Niel de Beaudrap for Has this notion of product of graphs been studied? Niel de Beaudrap 2010-06-30T06:12:20Z 2010-06-30T12:57:48Z <p>In a similar spirit to David Eppstein's answer, one can relate this construction to the tensor product (a.k.a. the Cartesian product) of graphs and digraphs. If it is a standard construction, I'm not aware of it.</p> <p>We may represent edge-colourings of the sort you describe by introducing a new node for each edge-colour, subdividing each edge of the original graph, and linking the central vertex of each edge to the appropriate colour-node. (This requires a multi-graph construction if you have loops in the original graph; you could fix this with additional subdivisions if you prefer simple-ish graphs.) If you use directed arcs to the colour nodes, you could use the asymmetry to make this construction reversible, up to permutation of the colours. Let us call this an <strong>edge subdivision model</strong> of a proper edge-colouring.</p> <p>The tensor product of graphs <em>G</em> and <em>H</em> is a graph <em>T</em> such that <em>V(T)</em>&nbsp;=&nbsp;<em>V(G)&nbsp;&times;&nbsp;V(H)</em>, and edge-relations {&nbsp;<em>(g<sub>1</sub>,h<sub>1</sub>)</em>,&nbsp;<em>(g<sub>2</sub>,&nbsp;h<sub>2</sub>)</em>&nbsp;}&nbsp;&isin;&nbsp;<em>E(T)</em> such that {<em>g<sub>1</sub></em>,&nbsp;<em>g<sub>2</sub></em>}&nbsp;&isin;&nbsp;<em>E(G)</em> and {<em>h<sub>1</sub></em>,&nbsp;<em>h<sub>2</sub></em>}&nbsp;&isin;&nbsp;<em>E(H)</em>. For digraphs, replace unordered pairs with ordered pairs. In terms of relations on the sets <em>V(G)</em> and <em>V(H)</em>, this is the logical conjunction. It is easy to see that in digraphs, only those vertex-pairs <em>(g<sub>1</sub>,h<sub>1</sub>)</em>,&nbsp;<em>(g<sub>2</sub>,&nbsp;h<sub>2</sub>)</em> which have consistent arc directions for each co-ordinate in the digraphs <em>G</em> and <em>H</em> will have arcs in the tensor product.</p> <p>The consistency of arc-directions in tensor products of digraphs is what David remarks on in his response: if each node has one inbound arc and one outbound arc, in both graphs, the tensor product will have the same property. But it may be difficult to obtain a well-defined mapping from edge-colours to arc directions, because edge-colours don't have any asymmetry in them. This motivates finding a different way of encoding structural information in an edge than asymmetry --- such as the subdivision models I describe above.</p> <p>If you take the tensor product of two coloured-subdivision graphs as I describe above, you get a first approximation to (an edge-subdivision model of) the graph construction you describe. There are two defects: <strong>(a)</strong>&nbsp;it has too many colours, one colour (<em>a,b</em>) for each pair of colours in the original colouring; and <strong>(b)</strong>&nbsp;it has vertices (<em>v,e</em>) which correspond to a vertex <em>v</em>&nbsp;&isin;&nbsp;<em>V(G)</em> in one co-ordinate and a subdivided edge <em>e</em>&nbsp;&isin;&nbsp;<em>E(H)</em> in another co-ordinate. However, from this tensor product we may easily obtain an induced subgraph, which is an edge-subdivision model of the graph construction you consider.</p> <ol> <li><p><strong>Eliminating excess colours</strong>: the colour-pairs <em>(a,b)</em> will be adjacent to nodes corresponding to the edge-pairs (<em>e<sub>G</sub>,&nbsp;e<sub>H</sub></em>) where <em>e<sub>G</sub>&nbsp;</em>&isin;<em>&nbsp;E(G)</em> has colour <em>a</em> and <em>e<sub>H</sub>&nbsp;</em>&isin;<em>&nbsp;E(H)</em> has colour <em>b</em>. You wish to have only consistent edge-colourings; to do this, simply remove the "mismatched colour" nodes (<em>a,b</em>) for <em>a&nbsp;&ne;&nbsp;b</em>, and any vertex adjacent to them which correspond to edges with mismatched colours. Any remaining node (<em>c,c</em>) for some colour <em>c</em> may be identified as the 'colour node' for <em>c</em> in a new edge-subdivision model for a graph.</p></li> <li><p><strong>Eliminating vertex/edge type-mismatched pairs</strong>: in an edge-subdivision model for your construction, we obviously would only want pairs (<em>e<sub>G</sub></em>,&nbsp;<em>e<sub>H</sub></em>) for <em>e<sub>G</sub></em>&nbsp;&isin;&nbsp;<em>E(G)</em> and <em>e<sub>H</sub></em>&nbsp;&isin;&nbsp;<em>E(H)</em> or pairs (<em>v<sub>G</sub></em>,&nbsp;<em>v<sub>H</sub></em>) for <em>v<sub>G</sub></em>&nbsp;&isin;&nbsp;<em>V(G)</em> and <em>v<sub>H</sub></em>&nbsp;&isin;&nbsp;<em>V(H)</em>, and no mismatched-type vertices (<em>v,e</em>). Fortunately, the vertex-nodes in the subdivision models are not adjacent to any colour; and so neither are mismatched-type nodes in the tensor product. In fact, mimatched-type vertices are only adjacent to other mismatched-type vertices. So we may restrict to the connected component(s) of the product graph which contains the colour nodes.</p></li> </ol> <p>So, your construction can be 'simulated' by taking an induced subgraph (in which a pre-determined vertex subset is to be removed) of a tensor product of 'uncoloured' graphs and digraphs. However, I haven't heard of this construction being used before.</p> <p>[<em>Edit</em>: added the remarks about mismatched-type vertices.]</p> http://mathoverflow.net/questions/29982/has-this-notion-of-product-of-graphs-been-studied/30065#30065 Answer by Cap Khoury for Has this notion of product of graphs been studied? Cap Khoury 2010-06-30T15:41:12Z 2010-06-30T15:41:12Z <p>An observation I made since posting, which may or may not be on the right track.</p> <p>Let ${\cal A}_n$ be the "free group on $n$ involutions'', that is $\langle x_1,x_2,\ldots,x_n\rangle/\langle x_1^2,x_2^2,\ldots,x_n^2\rangle$. Then a <em>colored graph</em> as described in the question is just a (finite) set with an ${\cal A}_n$ action. (The vertices are the objects, and the generator $x_i$ sends a vertex $v$ to the vertex connected to $v$ by an $i$-colored edge.)</p> <p>Then this product operation on graphs corresponds to the usual Cartesian product of ${\cal A}_n$-sets.</p> <p>However, unless there is some developed theory of the actions of the group ${\cal A}_n$ over and above the general theory of group actions, this is probably not the answer I want.</p> http://mathoverflow.net/questions/29982/has-this-notion-of-product-of-graphs-been-studied/30118#30118 Answer by Richard Kent for Has this notion of product of graphs been studied? Richard Kent 2010-06-30T23:27:04Z 2010-06-30T23:27:04Z <p>If you wanted this for directed graphs, I would say this:</p> <p>As Andy Putman suggests, look at Stallings Inventiones paper "The topology of finite graphs."</p> <p>A directed graph colored with $n$ colors admits an obvious map to a colored oriented wedge of $n$ circles, $X$ say.</p> <p>Given two directed colored graphs, the fiber product of the two maps to $X$ may be defined the same way you are defining your product, but where the condition being that there is an edge going from $(a,b)$ to $(c,d)$ colored $m$ if there is an edge from $a$ to $c$ colored $m$ and an edge from $b$ to $d$ colored $m$ (so the orientation is taken into account).</p> <p>This graph is smaller than yours, but has the advantage of being the pullback of a simple diagram.</p> <p>I think that you should be able to take care of the undirected case by thinking of each edge of your graph as two edges, one for each orientation, or some such device. There's a nice way to think about this in Gersten's paper "Intersection of finitely generated subgroups of free groups and resolutions of graphs" in the same issue of Inventiones---he talks about "ghost edges."</p> http://mathoverflow.net/questions/29982/has-this-notion-of-product-of-graphs-been-studied/30461#30461 Answer by Swapnil Bhatia for Has this notion of product of graphs been studied? Swapnil Bhatia 2010-07-03T21:33:10Z 2010-07-03T21:42:26Z <p>Since there is no mention of it, I will make one.</p> <p>The direct product of graphs $G$ and $H$ is defined like this: $V(G \times H) = V(G) \times V(H)$ and $E(G\times H)$ contains only $((g_1, h_1),(g_2, h_2))$ such that $(g_1, g_2) \in E(G)$ and $(h_1, h_2) \in E(H)$.</p> <p>In your properly edge colored graphs, if one considers all the pairs of monochromatic subgraphs (i.e., maximal subgraphs all of whose edges are the same color)---one in $G$ and the other in $H$---and takes their direct product, then one gets the same result as your product.</p> <p>The direct product is well-studied---see the book by Imrich and Klavzar. There are also other products such as the normal (strong) product, lex product, cartesian product, etc. that might also be of interest.</p>