Preprint
Article

Adjacency Matrix for the Graph Exponential

Altmetrics

Downloads

79

Views

23

Comments

0

This version is not peer-reviewed

Submitted:

24 May 2024

Posted:

27 May 2024

You are already at the latest version

Alerts
Abstract
Introduced in 1967 by Lov\'{a}sz, graph exponentiation has received little attention over the past several decades. Since graph exponentiation produces large graphs and any graph can be constructed utilizing its adjacency matrix, we provide a four step linear construction algorithm that generates the adjacency matrix for the graph exponential.
Keywords: 
Subject: Computer Science and Mathematics  -   Discrete Mathematics and Combinatorics

1. Introduction

As graphs are relational structures, graph exponentiation and the graph exponential G K were introduced by Lovász in 1967 [6]. Although Lovász develops G K based on its relationship to the direct product, he mentions that G K is interesting in its own right and provides several properties of G K . Over the past several decades, the G K product has received very little attention. Any graph can be constructed using its adjacency matrix; and large graphs are generated by G K . Proposition 4.1 states the construction of the G K adjacency matrix when K is K 2 . This proposition demonstrates the recognized connection of G K to the direct power of G; and Proposition 4.1 is utilized in the proof of Theorem 4.3 that gives the adjacency matrix for a general K. In Figure 3 we provide a four step linear construction algorithm for the adjacency matrix of the general G K .
Section 2 discusses notation plus fundamental information on the discussed matrices and on the direct product. As there exists an alternative definition of G K , Section 3 gives detailed information concerning the form of G K used in this note. In Section 4, we provide the construction of the adjacency matrix for G K in the form of a construction algorithm, provide a detailed example plus give the general theorem.

2. Background

Only finite undirected graphs are considered. Basic graph theory knowledge as found in [1] is assumed. The vertex set of graph G is denoted by V ( G ) while E ( G ) indicates the edge set. It is assumed that all graphs have the same vertex labeling scheme of { 0 , 1 , 2 , , n 1 } where n is graph order. Graph order is also indicated with | G | . For any vertex v V ( G ) , N ( v ) reflects the open neighborhood of v, and N [ v ] is used for the closed neighborhood. Vertex adjacency is given by v 1 v 2 , two graphs being isomorphic is G H , and G + H is used for the disjoint union of G and H. For x N , x G represents x copies of G. The automorphism group of G is Aut ( G ) .
Complete graphs are given as K n and complete graphs with a loop at each vertex are K n * . Notation D n is the disjoint union of n number of K 1 subgraphs and is called the empty graph. The null graph O has empty vertex and edge sets. Let | S | be the order of set S.

2.1. Matrices

In this paper, loops in an adjacency matrix are 1s along the diagonal. As will be shown, the direct product G × H (or more specifically the direct power G x ) has connections to G K as seen in the adjacency matrices of both products. Let the adjacency matrix of graph G be A G . Denoted A G × H , the adjacency matrix for the direct product ( A G x is the adjacency matrix for the direct power) is the Kronecker product A G × H = A G A H . The adjacency matrix for G K is given by A G K and is discussed in Section 4. Denote the square all zero matrix as Z while J is the square matrix of all ones. Matrix multiplication is given by A G * A H .

2.2. Direct Product

The direct product  G × H has vertex set that is the Cartesian product V ( G ) × V ( H ) producing ordered pair vertices ( g , h ) where g V ( G ) and h V ( H ) . An edge ( g , h ) ( g , h ) in E ( G × H ) is defined when ( g , g ) E ( G ) and ( h , h ) E ( H ) . The direct power G x is the direct product of G to itself x number of times. Additional information on the direct product can be found in [3].

3. Graph Exponentiation Overview

As there exist multiple definitions for graph exponentiation (see [5] Figure 1 for an alternate definition), we clearly explain our interpretation of this graph product (also see [2,4,6,7]).
Graph exponentiation is a graph product operation where the vertex set of the graph exponential  G K is the set of all functions f : V ( K ) V ( G ) where two functions f 1 and f 2 are adjacent in G K if ( f 1 ( k ) f 2 ( k ) ) E ( G ) for all ( k , k ) E ( K ) . Thus | V ( G K ) | is | G | | K | . Since only undirected G and K are considered, all functions are symmetric and G K is undirected as shown in [7].
Although K n indicates a complete graph, in this paper K with no subscript exclusively refers to the graph that is the exponent in the graph exponentiation product, G K . As shown by K 2 K 2 in Figure 1, even if G and K are loopless, G K generates two components with loops. Hence, G and K in this note are permitted to have loops thus creating a closed system.
In addition to the notation | K | as graph order, let n K indicate the order of K. If V ( K ) = { k 1 , k 2 , , k n K } then each function f i can be represented by n K -tuple ( g 1 , g 2 , , g n K ) where g i V ( G ) , reflecting that f ( k i ) = g i .
Example 1. Suppose K 2 is both K and G where both have vertex set { 0 , 1 } as seen in Figure 1. Then V ( K 2 K 2 ) = V ( K 2 ) × V ( K 2 ) = { ( 0 , 0 ) , ( 0 , 1 ) , ( 1 , 0 ) , ( 1 , 1 ) } and function ( g 1 , g 1 ) is adjacent to function ( g 2 , g 2 ) in G K if and only if edges ( ( g 1 , g 2 ) and ( g 2 , g 1 ) ) are in E ( G ) since K is K 2 . In G : = K 2 , N G ( 0 ) = 1 and N G ( 1 ) = 0 so exponential function/vertex ( 0 , 0 ) ( 1 , 1 ) and ( 0 , 1 ) ( 0 , 1 ) .
Denote K 1 * + K 1 * by 2 K 1 * . Figure 1 displays K 2 K 2 and ( 2 K 1 * ) K 2 . Notice that K 2 K 2 ( 2 K 1 * ) K 2 although K 2 2 K 1 * .

3.1. Known Properties of G K

As K 1 * has one function that maps vertex v to itself then G K 1 * = G . Thus K 1 * is the identity for this product.
Given graphs G, H and K plus direct product G × H , the following hold as proved in [6].
  • G K 1 * = G .
  • G x ( K 1 * ) = G × G × × G x number of times is G x ,
  • G O = n G K 1
  • G H × G K G H + K ,
  • ( G × H ) K G K × H K ,
  • ( G H ) K G H × K .
Any G has a neighborhood multiset N ( G ) of the open neighborhoods N ( g ) for g V ( G ) . For K 2 with V ( K 2 ) = { 0 , 1 } , as N ( 0 ) = 1 and N ( 1 ) = 0 , then N ( K 2 ) = { { 1 } , { 0 } } . It is not always true that if N ( G ) = N ( H ) then G H . See [2] for a couple of examples. Graph G is said to be neighborhood reconstructible if N ( G ) = N ( H ) implies that G H [2]. In [2] it is shown that G is neighborhood reconstructible if and only if G K 2 H K 2 implies G H for all H. This appears to be the only instance in which cancellation in G K is explored.

3.2. Loops in G K

The generation of loops in G K happens even when both K and G are loopless. Loops in the graph exponential indicate a homomorphism between the functions of G K as determined by the edge structure of G. In fact, f is a homomorphism if and only if ( f , f ) is a loop of G K [7].

3.3. Acyclic versus Cyclic K

If G is loopless, then any f i must have no fixed vertex in order to generate an edge in G K . Ponder when K is an odd tree. For any acyclic graph, the set of all f i form transpositions that involve an even number of vertices. Thus there is always a fixed vertex in any function set of an odd tree. Based on the definition of G K and the fact that V ( G K ) is a set of n K -tuple vertices, when K is an odd ordered acyclic graph and G is loopless, G K D | G | | K | . However, given an even ordered acyclic K, there exist transpositions involving all of the digits in the n K -tuple so G K D n . It also holds that when K has a cycle, then G K D n independent of whether G has a loop or not.

4. Adjacency Matrix

As any graph G can be constructed from its A G , our goal is to find a relatively simple way to construct A G K for any G and K. We begin with the adjacency matrix for G K when K is K 2 , followed by using this construction in the proof of the general case for K.

4.1. Adjacency Matrix When K 2 is K

When K is K 2 , then V ( G K ) is Cartesian product V ( G ) × V ( G ) and function f i is a single transposition. Thus, for the functions ( g 1 , g 1 ) and ( g 2 , g 2 ) in V ( G K ) , ( g 1 , g 1 ) ( g 2 , g 2 ) if and only if edges ( g 1 , g 2 ) and ( g 1 , g 2 ) are in E ( G ) .
Define a row reordered matrix to be a square matrix with its row indices ordered in a pattern that does not match the order of the column indices with the index ordering difference due to either a row permutation or a row labeling (or similarly for columns). For now we consider the impact of row reordering a matrix as applying only to K : = K 2 . Figure 2 shows the adjacency matrix A G K for K 3 K 2 along with a colexicographic row reordered matrix, A G K * where the column indices of A G K * differ from the row indices. As the rows of A G K are simply permuted in A G K * , the row-column adjacency structure of G K 2 is preserved. Also shown in the top right is the block matrix of A G K * . Take note that the block form of A G K * reveals that A G K * = A K 3 A K 3 ; and note that A G A G is the adjacency matrix of the direct power G 2 .
In Figure 2, the fact that row reordering A G K according to colexicographic order produces the matrix A G A G implies that A G K can be constructed from A G A G . Hence, A G A G as A G K * with colexicographic row indices, followed by row permutation to lexicographic order that matches column index order, generates A G K when K : = K 2 . This follows from the fact that Aut ( K 2 ) contains a single transposition.
Let P be permutation matrix 1 0 0 0 0 0 1 0 0 1 0 0 0 0 0 1 that represents the transposition of K 2 as K for G with order 2; and let A A be the matrix A K 2 A K 2 while A A = A 2 K 1 * A 2 K 1 * . Returning to Figure 1, P * A A gives A ( K 2 K 2 ) and P * A A results in A ( 2 K 1 * K 2 ) where A ( K 2 K 2 ) and A ( 2 K 1 * K 2 ) are permutation equivalent showing that K 2 ( K 2 ) 2 K 1 * ( K 2 ) .
By choice, Proposition 4.1 is stated utilizing row labeling although a permutation matrix is a clear option.
Proposition 4.1
Let G be any graph without multiple edges and let K in G K be K 2 . Construct a block matrix A G K * = A G A G using the colexicographic ordering of V ( G K ) as row index labels while column indices are lexicographically labeled. Matrix A G K * produces A G K by row permuting to have both row and column indices in lexicographic order.
Proof. 
Suppose A G K is the adjacency matrix for G K 2 with arbitrary ( g i , g j ) V ( G K 2 ) and g i , g j V ( G ) where i = j is permitted. Since K is K 2 then ( g 1 , g 1 ) ( g 2 , g 2 ) if and only if ( g 1 , g 2 ) , ( g 2 , g 1 ) E ( G ) as reflected in the entries of A G . Row reorder A G K via colexicographic order and call the revised matrix A G K * , thus preserving the adjacency structure of G K 2 that is based on that of A G . A G K * has n G × n G blocks where g i of ( g i , g j ) are the vertices of G in lexicographic order and all g j are the same. Consider a block row to be the collection of rows where all g j are the same. Let r g j be the g j row of A G . Then any block row reflects the adjacency structure of g j and is equivalent to the product r g j A G reflecting the n G number of g i in ( g i , g j ) for each specific g j of the block row. Thus, A G K * is A G A G ; and A G K is found by row permutation back to lexicographic index order.
Now suppose that we have A G K * = A G A G which is the adjacency matrix for the direct power G × G = G 2 with vertex set V ( G ) × V ( G ) = V ( G K 2 ) . Let ( g i * , g j * ) V ( G × G ) . In this direct power, ( g 1 * , g 1 * ) ( g 2 * , g 2 * ) if and only if ( g 1 * , g 2 * ) , ( g 1 * , g 2 * ) E ( G ) . Each block row of A G K * reflects the adjacency structure of g i * . Using V ( G K 2 ) , assign a colexicographic labeling only to the rows of A G K * , so that each labeled block row reflects the adjacency structure of g j * . Since ( g 1 * , g 1 * ) ( g 2 * , g 2 * ) in G K 2 if and only if ( g 1 * , g 2 * ) , ( g 2 * , g 1 * ) E ( G ) , row reordering the colexicographic rows of A G K * via lexicographic order produces A G K for G K 2 . □

4.2. General A G K

The adjacency matrix for the general case of G K is now addressed. First we give some definitions.
Imagine set { f 1 , f 2 , , f k } of n K -tuple functions where f i : V ( K ) V ( G ) and k is the number of f i that apply to G (i.e. the k number of f i that generate edges in G K ). Let π i be a | G | | K | × | G | | K | permutation matrix for each f i and π i Ω G . Thus, based on the structure of G, Ω G contains only the k number of π i where the f i produce edges in G K .
Let A G be the Kronecker product of A G over | K | where the Z blocks are maximized by having A G as the first multiplicand:
A G = i = 1 n K 1 A G ( A G ) i
Define Ω A as a collection of | Ω G | number of ( A ) i = π i * A G . Thus, each ( A ) i is associated with a distinct member π i of Ω G . Thus each ( A ) i member of Ω A is a submatrix of A G K based on a specific π i , with set Ω A over all π i in Ω G .
Define Δ as a matrix sum of ( A ) i such that a i j is changed to 1 for all a i j where a i j > 1 . This eliminates the miscounting of redundantly generated neighbors in G K .
Applying Δ to Ω A generates A G K for the specific G and K. Prior to giving proof of the last statement, we provide a linear construction algorithm in Figure 3 and give Example 1 that uses the algorithm in the figure.
The use of Ω for sets Ω G and Ω A is by design as these sets can be viewed as a single “evolving" set that begins with Ω G .
Remark 4.2
Because Figure 3 provides a linear construction, the following are true. Notice that | Ω A | = | Ω G | , and there exists a bijection between the f i members of Ω G , the π i members of Ω G and the members of Ω A .
Example 2: Imagine K 2 with V ( K 2 ) = { 0 , 1 } and K 3 with V ( G ) = { v 1 , v 2 , v 3 } . Suppose exponential K 2 K 3 with vertex function set of { 000 , 001 , 010 , 011 , 100 , 101 , 110 , 111 } given in shorthand notation. Using the algorithm in Figure 3, we construct A G K for K 3 K 2 as given below on the far left. Hence, this A G K is the goal of our example construction. The other two matrices displayed in Figure 4 are the two members of Ω A whose construction is explained following.
Figure 3. The construction algorithm of A G K .
Figure 3. The construction algorithm of A G K .
Preprints 107379 g003
  • Although the set of f i is Aut ( K 3 ) (the dihedral group of 3 excluding the identity: ( v 2 v 3 v 1 ) , ( v 3 v 1 v 2 ) , ( v 2 v 1 v 3 ) , ( v 1 v 3 v 2 ) , ( v 3 v 2 v 1 ) ), since G is a loopless K 2 , then any function containing a fixed vertex is disregarded and the set of f i in Ω G is { ( v 2 v 3 v 1 ) , ( v 3 v 1 v 2 ) } [4]. Construct two permutation matrices: π 1 for ( v 2 v 3 v 1 ) and π 2 as ( v 3 v 1 v 2 ) .
  • Given G : = K 2 and A K 2 = 0 1 1 0 , using equation 1 produces A G : = A K 2 where A K 2 = A K 2 A K 2 A K 2 ; and A K 2 is a 8 × 8 permutation matrix of cross-diagonal 1s with indices of { 000 , 001 , 010 , 011 , 100 , 101 , 110 , 111 } .
  • Based on the π i members of Ω G and using two A K 2 matrices, there are two members of Ω A : A 1 = π 1 * A K 2 and A 2 = π 2 * A K 2 . Using the vertices of A K 2 , the rows of A K 2 are permuted by π 1 to be the ordered set ( 000 , 010 , 100 , 110 , 001 , 011 , 101 , 111 ) as shown in the center of Figure 4. Matrix π 2 permutes the rows of A K 2 to be the ordered set ( 000 , 100 , 001 , 101 , 010 , 1101 , 011 , 111 ) as on the far right in Figure 4.
  • Utilizing Δ , the 2s generated by the duplicate 000 and 111 entries are changed to 1s with the result being A G K for K 2 K 3 as desired.
Theorem 4.3
Given G K where G and K are graphs without multiple edges, A G K is the Δ sum of the members of Ω A .
Proof. 
Consider Remark 4.2 and let r g i be the g i indexed row of A G where g i V ( G ) . Although Proposition 4.1 is based on the single transposition of K 2 as K, we know that for all functions f : V ( K ) V ( G ) each row of A G K is found utilizing r g j of A G and the Kronecker product. Thus, keeping Proposition 4.1 in mind, consider each function/vertex of G K with a general K. Since A G K 2 is based on a permutation of A G rows, then each row of A G K must be found via the rows of A G .
Let x : = ( g 1 , , g n K ) where g i x with g i V ( G ) and r x is the row of A G K indexed by x. The neighbors of x are based on the set of neighbors of g i V ( G ) as represented by row r g i of A G . For any edge e E ( G K ) where e : = ( x , x ) , each element g i of x must be a neighbor of its corresponding element g i of x in G based on the f i that generate edges in G K ; so r g i r g i gives their joint neighborhood. As each g i is an element of a function x, then for all g i and all g i for specific edge e, r g i r g i , (for that specific π i in Ω G ), associates x with the specific π i . Finding r g i r g i for all π i in Ω G gives the complete neighborhood of x in G K ; thus using Δ to sum all r g i r g i for a given x gives row r x of A G K . Each row sum represents a basis of the vector space of G K as the vertices are n K -tuple functions. So the disjoint union of these rows into a matrix is A G K . □

References

  1. Chartrand, L. Lesniak, P. Zhang (2016) Graphs & Digraphs, 6th Ed.. DCRC Press, Boca Raton, FL.
  2. Hammack (2021) Graph exponentiation and neighborhood reconstruction. Discussiones Mathematicae Graph Theory 41. 335-339.
  3. R. Hammack, W. Imrich, S. Klavžar (2011) Handbook of Product Graphs, 2nd Ed.. CRC Press, Boca Raton, FL.
  4. F. Harary (1969) Graph Theory. Taylor and Francis Group, Boca Raton, FL.
  5. B. Jónsson (1981) Arithmetic of ordered sets, in: I. Rival (Ed.), Ordered Sets (Banff Alta),, Volume 83 of NATO Advanced Study Inst. Ser. C. Math. Phys. Sci. 3–43.
  6. L. Lovázs (1967) Operations with structures. Acta Math. Acad. Sci. Hungar. 18. 321–328. [CrossRef]
  7. N. Sauer (2001) Hedetniemi’s conjecture - a survey. Discrete Mathematics 229. 261-292.
Figure 1. Two isomorphic graph exponentials K 2 K 2 and ( K 1 * + K 1 * ) K 2 .
Figure 1. Two isomorphic graph exponentials K 2 K 2 and ( K 1 * + K 1 * ) K 2 .
Preprints 107379 g001
Figure 2. The graph and matrices for Example 2.
Figure 2. The graph and matrices for Example 2.
Preprints 107379 g002
Figure 4. On the far left, A G K that is the goal for the Example 1 construction.
Figure 4. On the far left, A G K that is the goal for the Example 1 construction.
Preprints 107379 g004
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.
Prerpints.org logo

Preprints.org is a free preprint server supported by MDPI in Basel, Switzerland.

Subscribe

© 2024 MDPI (Basel, Switzerland) unless otherwise stated