Graph Homomorphism Convolution

Total Page:16

File Type:pdf, Size:1020Kb

Graph Homomorphism Convolution Graph Homomorphism Convolution Hoang NT 1 2 Takanori Maehara 1 Abstract important extension of machine learning as it generalizes In this paper, we study the graph classification learning methods from Euclidean data to non-Euclidean problem from the graph homomorphism perspec- data. This branch of machine learning not only deals with tive. We consider the homomorphisms from F to learning irregular data but also provides a proper means to G, where G is a graph of interest (e.g. molecules combine meta-data with their underlying structure. There- or social networks) and F belongs to some family fore, geometric learning methods have enabled the appli- of graphs (e.g. paths or non-isomorphic trees). cation of machine learning to real-world problems: From We show that graph homomorphism numbers pro- categorizing complex social interactions to generating new vide a natural invariant (isomorphism invariant chemical molecules. Among these methods, graph-learning and F-invariant) embedding maps which can be models for the classification task have been the most impor- used for graph classification. Viewing the ex- tant subject of study. pressive power of a graph classifier by the F- d Let X be the space of features (e.g., X = R for some indistinguishable concept, we prove the universal- positive integer d), Y be the space of outcomes (e.g., Y = ity property of graph homomorphism vectors in f0; 1g), and G = (V (G);E(G)) be a graph with a vertex approximating F-invariant functions. In practice, set V (G) and edge set E(G) ⊆ V (G) × V (G). The graph by choosing F whose elements have bounded tree- classification problem is stated follow1. width, we show that the homomorphism method is efficient compared with other methods. Problem 1 (Graph Classification Problem). We are given a set of tuples f(Gi; xi; yi): i = 1;:::;Ng of graphs Gi = (V (Gi);E(Gi)), vertex features xi : V (Gi) !X , 1. Introduction and outcomes yi 2 Y. The task is to learn a hypothesis h such that h((G ; x )) ≈ y . 2 1.1. Background i i i In many fields of science, objects of interest often exhibit Problem1 has been studied both theoretically and empiri- irregular structures. For example, in biology or chemistry, cally. Theoretical graph classification models often discuss molecules and protein interactions are often modeled as the universality properties of some targeted function class. graphs (Milo et al., 2002; Benson et al., 2016). In multi- While we can identify the function classes which these the- physics numerical analyses, methods such as the finite ele- oretical models can approximate, practical implementations ment methods discretize the sample under study by 2D/3D- pose many challenges. For instance, the tensorized model meshes (Mezentsev, 2004; Fey et al., 2018). In social stud- proposed by (Keriven & Peyre´, 2019) is universal in the ies, interactions between people are presented as a social space of continuous functions on bounded size graphs, but arXiv:2005.01214v2 [cs.LG] 2 Jul 2020 network (Barabasi´ et al., 2016). Understanding these irregu- it is impractical to implement such a model. On the other lar non-Euclidean structures have yielded valuable scientific hand, little is known about the class of functions which can and engineering insights. With recent successful develop- be estimated by some practical state-of-the-art models. To ments of machine learning on regular Euclidean data such address these disadvantages of both theoretical models and as images, a natural extension challenge arises: How do we practical models, we need a practical graph classification learn non-Euclidean data such as graphs or meshes? model whose approximation capability can be parameter- Geometric (deep) learning (Bronstein et al., 2017) is an ized. Such a model is not only effective in practice, as we can introduce inductive bias to the design by the afore- 1RIKEN Center for Advanced Intelligence Project, Tokyo, mentioned parameterization, but also useful in theory as a Japan 2Tokyo Institute of Technology, Tokyo, Japan. Correspon- framework to study the graph classification problem. dence to: Hoang NT <[email protected]>. In machine learning, a model often introduces a set of as- Proceedings of the 37 th International Conference on Machine Learning, Vienna, Austria, PMLR 119, 2020. Copyright 2020 by 1This setting also includes the regression problem. the author(s). 2h can be a machine learning model with a given training set. Graph Homomorphism Convolution sumptions, which is known as inductive bias. These as- In this paper, we focus on simple undirected graphs without sumptions help narrow down the hypothesis space while edge weights for simplicity. The extension of all our results maintaining the validity of the learning model subject to to directed and/or weighted graphs is left as future work. the nature of the data. For example, a natural inductive bias for graph classification problems is the invariant to 1.3. Related Works the permutation property (Maron et al., 2018; Sannai et al., 2019). We are often interested in a hypothesis h that is in- There are two main approaches to construct an embedding: graph kernels and graph neural networks. In the following variant to isomorphism, i.e., for two isomorphic graphs G1 paragraphs, we introduce some of the most popular methods and G2 the hypothesis h should produce the same outcome, which directly related to our work. For a more comprehen- h(G1) = h(G2). Therefore, it is reasonable to restrict our attention to only invariant hypotheses. More specifically, sive view of the literature, we refer to surveys on graph neu- we focus on invariant embedding maps because we can con- ral networks (Wu et al., 2019) and graph kernels (Gartner¨ , struct an invariant hypothesis by combining these mappings 2003; Kriege et al., 2019). with any machine learning model designed for vector data. Consider the following research question: 1.3.1. GRAPH KERNELS Question 2. How to design an efficient and invariant em- The kernel method first defines a kernel function on the bedding map for the graph classification problem? space, which implicitly defines an embedding ρ such that the inner product of the embedding vectors gives a kernel 1.2. Homomorphism Numbers as a Classifier function. Graph kernels implement ρ by counting methods or graph distances (often exchangeable measures). There- A common approach to Problem1 is to design an embed- fore, they are isomorphism-invariant by definition. ding3 ρ:(G; x) 7! ρ((G; x)) 2 Rp, which maps graphs to vectors, where p is the dimensionality of the representation. The graph kernel method is the most popular approach to Such an embedding can be used to represent a hypothesis study graph embedding maps. Since designing a kernel for graphs as h((G; x)) = g(ρ((G; x)) by some hypothesis which uniquely represents graphs up to isomorphisms is as g : Rp !Y for vectors. Because the learning problem on hard as solving graph isomorphism (Gartner¨ et al., 2003), vectors is a well-studied problem, we can focus on designing many previous studies on graph kernels have focused on and understanding graph embedding. proposing a solution to the trade-off between computational efficiency and representability. A natural idea is to compute We found that using homomorphism numbers as an invariant subgraph frequencies (Gartner¨ et al., 2003) to use as graph embedding is not only theoretically valid but also extremely embeddings. However, counting subgraphs is a #W[1]-hard efficient in practice. In a nutshell, the embedding for a problem (Flum & Grohe, 2006) and even counting induced graph G is given by selecting k pattern graphs to form a subgraphs is an NP-hard problem (more precisely it is an fixed set F, then computing the homomorphism numbers #A[1]-hard problem (Flum & Grohe, 2006)). Therefore, from each F 2 F to G. The classification capability of methods like the tree kernel (Collins & Duffy, 2002; Mahe´ the homomorphism embedding is parameterized by F. We & Vert, 2009) or the random walk kernel (Gartner¨ et al., develop rigorous analyses for this idea in Section2 (without 2003; Borgwardt et al., 2005) restrict the subgraph family to vertex features) and Section3 (with vertex features). be some computationally efficient graphs. Regarding graph Our contribution is summarized as follows: homomorphism,G artner¨ et al. and also Mahe´ & Vert studied a relaxation which is similar to homomorphism counting • Introduce and analyze the usage of weighted graph ho- (walks and trees). Especially, Mahe´ & Vert showed that the momorphism numbers with a general choice of F. The tree kernel is efficient for molecule applications. However, choice of F is a novel way to parameterize the capabil- their studies limit to tree kernels and it is not known to what ity of graph learning models compared to choosing the extend these kernels can represent graphs. tensorization order in other related work. • Prove the universality of the homomorphism vector More recently, the graphlet kernel (Shervashidze et al., 2009; in approximating F-indistinguishable functions. Our Przuljˇ et al., 2004) and the Weisfeiler-Lehman kernel (Sher- main proof technique is to check the condition of the vashidze et al., 2011; Kriege et al., 2016) set the state-of-the- Stone-Weierstrass theorem. art for benchmark datasets (Kersting et al., 2016). Other sim- ilar kernels with novel modifications to the distance function, • Empirically demonstrate our theoretical findings with such as Wasserstein distance, are also proposed (Togninalli synthetic and benchmark datasets. Notably, we show et al., 2019). While these kernels are effective for bench- that our methods perform well in graph isomorphism mark datasets, some are known to be not universal (Xu et al., test compared to other machine learning models. 2019; Keriven & Peyre´, 2019) and it is difficult to address 3Not to be confused with “vertex embedding”.
Recommended publications
  • Homomorphisms of 3-Chromatic Graphs
    Discrete Mathematics 54 (1985) 127-132 127 North-Holland HOMOMORPHISMS OF 3-CHROMATIC GRAPHS Michael O. ALBERTSON Department of Mathematics, Smith College, Northampton, MA 01063, U.S.A. Karen L. COLLINS Department of Mathematics, M.L T., Cambridge, MA 02139, U.S.A. Received 29 March 1984 Revised 17 August 1984 This paper examines the effect of a graph homomorphism upon the chromatic difference sequence of a graph. Our principal result (Theorem 2) provides necessary conditions for the existence of a homomorphism onto a prescribed target. As a consequence we note that iterated cartesian products of the Petersen graph form an infinite family of vertex transitive graphs no one of which is the homomorphic image of any other. We also prove that there is a unique minimal element in the homomorphism order of 3-chromatic graphs with non-monotonic chromatic difference sequences (Theorem 1). We include a brief guide to some recent papers on graph homomorphisms. A homomorphism f from a graph G to a graph H is a mapping from the vertex set of G (denoted by V(G)) to the vertex set of H which preserves edges, i.e., if (u, v) is an edge in G, then (f(u), f(v)) is an edge in H. If in addition f is onto V(H) and each edge in H is the image of some edge in G, then f is said to be onto and H is called a homomorphic image of G. We define the homomorphism order ~> on the set of finite connected graphs as G ~>H if there exists a homomorphism which maps G onto H.
    [Show full text]
  • Graph Operations and Upper Bounds on Graph Homomorphism Counts
    Graph Operations and Upper Bounds on Graph Homomorphism Counts Luke Sernau March 9, 2017 Abstract We construct a family of countexamples to a conjecture of Galvin [5], which stated that for any n-vertex, d-regular graph G and any graph H (possibly with loops), n n d d hom(G, H) ≤ max hom(Kd,d,H) 2 , hom(Kd+1,H) +1 , n o where hom(G, H) is the number of homomorphisms from G to H. By exploiting properties of the graph tensor product and graph exponentiation, we also find new infinite families of H for which the bound stated above on hom(G, H) holds for all n-vertex, d-regular G. In particular we show that if HWR is the complete looped path on three vertices, also known as the Widom-Rowlinson graph, then n d hom(G, HWR) ≤ hom(Kd+1,HWR) +1 for all n-vertex, d-regular G. This verifies a conjecture of Galvin. arXiv:1510.01833v3 [math.CO] 8 Mar 2017 1 Introduction Graph homomorphisms are an important concept in many areas of graph theory. A graph homomorphism is simply an adjacency-preserving map be- tween a graph G and a graph H. That is, for given graphs G and H, a function φ : V (G) → V (H) is said to be a homomorphism from G to H if for every edge uv ∈ E(G), we have φ(u)φ(v) ∈ E(H) (Here, as throughout, all graphs are simple, meaning without multi-edges, but they are permitted 1 to have loops).
    [Show full text]
  • Chromatic Number of the Product of Graphs, Graph Homomorphisms, Antichains and Cofinal Subsets of Posets Without AC
    CHROMATIC NUMBER OF THE PRODUCT OF GRAPHS, GRAPH HOMOMORPHISMS, ANTICHAINS AND COFINAL SUBSETS OF POSETS WITHOUT AC AMITAYU BANERJEE AND ZALAN´ GYENIS Abstract. In set theory without the Axiom of Choice (AC), we observe new relations of the following statements with weak choice principles. • If in a partially ordered set, all chains are finite and all antichains are countable, then the set is countable. • If in a partially ordered set, all chains are finite and all antichains have size ℵα, then the set has size ℵα for any regular ℵα. • CS (Every partially ordered set without a maximal element has two disjoint cofinal subsets). • CWF (Every partially ordered set has a cofinal well-founded subset). • DT (Dilworth’s decomposition theorem for infinite p.o.sets of finite width). We also study a graph homomorphism problem and a problem due to Andr´as Hajnal without AC. Further, we study a few statements restricted to linearly-ordered structures without AC. 1. Introduction Firstly, the first author observes the following in ZFA (Zermelo-Fraenkel set theory with atoms). (1) In Problem 15, Chapter 11 of [KT06], applying Zorn’s lemma, Komj´ath and Totik proved the statement “Every partially ordered set without a maximal element has two disjoint cofinal subsets” (CS). In Theorem 3.26 of [THS16], Tachtsis, Howard and Saveliev proved that CS does not imply ‘there are no amorphous sets’ in ZFA. We observe ω that CS 6→ ACfin (the axiom of choice for countably infinite familes of non-empty finite − sets), CS 6→ ACn (‘Every infinite family of n-element sets has a partial choice function’) 1 − for every 2 ≤ n<ω and CS 6→ LOKW4 (Every infinite linearly orderable family A of 4-element sets has a partial Kinna–Wegner selection function)2 in ZFA.
    [Show full text]
  • No Finite-Infinite Antichain Duality in the Homomorphism Poset D of Directed Graphs
    NO FINITE-INFINITE ANTICHAIN DUALITY IN THE HOMOMORPHISM POSET D OF DIRECTED GRAPHS PETER¶ L. ERDOS} AND LAJOS SOUKUP Abstract. D denotes the homomorphism poset of ¯nite directed graphs. An antichain duality is a pair hF; Di of antichains of D such that (F!) [ (!D) = D is a partition. A generalized duality pair in D is an antichain duality hF; Di with ¯nite F and D: We give a simpli¯ed proof of the Foniok - Ne·set·ril- Tardif theorem for the special case D, which gave full description of the generalized duality pairs in D. Although there are many antichain dualities hF; Di with in¯nite D and F, we can show that there is no antichain duality hF; Di with ¯nite F and in¯nite D. 1. Introduction If G and H are ¯nite directed graphs, write G · H or G ! H i® there is a homomorphism from G to H, that is, a map f : V (G) ! V (H) such that hf(x); f(y)i is a directed edge 2 E(H) whenever hx; yi 2 E(G). The relation · is a quasi-order and so it induces an equivalence relation: G and H are homomorphism-equivalent if and only if G · H and H · G. The homomorphism poset D is the partially ordered set of all equivalence classes of ¯nite directed graphs, ordered by ·. In this paper we continue the study of antichain dualities in D (what was started, in this form, in [2]). An antichain duality is a pair hF; Di of disjoint antichains of D such that D = (F!) [ (!D) is a partition of D, where the set F! := fG : F · G for some F 2 Fg, and !D := fG : G · D for some D 2 Dg.
    [Show full text]
  • Graph Relations and Constrained Homomorphism Partial Orders (Relationen Von Graphen Und Partialordungen Durch Spezielle Homomorphismen) Long, Yangjing
    Graph Relations and Constrained Homomorphism Partial Orders Der Fakultät für Mathematik und Informatik der Universität Leipzig eingereichte DISSERTATION zur Erlangung des akademischen Grades DOCTOR RERUM NATURALIUM (Dr.rer.nat.) im Fachgebiet Mathematik vorgelegt von Bachelorin Yangjing Long geboren am 08.07.1985 in Hubei (China) arXiv:1404.5334v1 [math.CO] 21 Apr 2014 Leipzig, den 20. März, 2014 献给我挚爱的母亲们! Acknowledgements My sincere and earnest thanks to my ‘Doktorväter’ Prof. Dr. Peter F. Stadler and Prof. Dr. Jürgen Jost. They introduced me to an interesting project, and have been continuously giving me valuable guidance and support. Thanks to my co-authers Prof. Dr. Jiří Fiala and Prof. Dr. Ling Yang, with whom I have learnt a lot from discussions. I also express my true thanks to Prof. Dr. Jaroslav Nešetřil for the enlightening discussions that led me along the way to research. I would like to express my gratitude to my teacher Prof. Dr. Yaokun Wu, many of my senior fellow apprentice, especially Dr. Frank Bauer and Dr. Marc Hellmuth, who have given me a lot of helpful ideas and advice. Special thanks to Dr. Jan Hubička and Dr. Xianqing Li-jost, not only for their guidance in mathematics and research, but also for their endless care and love—they have made a better and happier me. Many thanks to Dr. Danijela Horak helping with the artwork in this thesis, and also to Dr. Andrew Goodall, Dr. Johannes Rauh, Dr. Chao Xiao, Dr. Steve Chaplick and Mark Jacobs for devoting their time and energy to reading drafts of the thesis and making language corrections.
    [Show full text]
  • Counting Subgraphs Via Homomorphisms∗
    Counting Subgraphs via Homomorphisms∗ Omid Aminiy Fedor V. Fominz Saket Saurabhx Abstract We introduce a generic approach for counting subgraphs in a graph. The main idea is to relate counting subgraphs to counting graph homomorphisms. This approach provides new algorithms and unifies several well known results in algorithms and combinatorics includ- ing the recent algorithm of Bj¨orklund,Husfeldt and Koivisto for computing the chromatic polynomial, the classical algorithm of Kohn, Gottlieb, Kohn, and Karp for counting Hamil- tonian cycles, Ryser's formula for counting perfect matchings of a bipartite graph, and color coding based algorithms of Alon, Yuster, and Zwick. By combining our method with known combinatorial bounds, ideas from succinct data structures, partition functions and the color coding technique, we obtain the following new results: • The number of optimal bandwidth permutations of a graph on n vertices excluding n+o(n) a fixed graph as a minor can be computedp in time O(2 ); in particular in time O(2nn3) for trees and in time 2n+O( n) for planar graphs. • Counting all maximum planar subgraphs, subgraphs of bounded genus, or more gen- erally subgraphs excluding a fixed graph M as a minor can be done in 2O(n) time. • Counting all subtrees with a given maximum degree (a generalization of counting Hamiltonian paths) of a given graph can be done in time 2O(n). • A generalization of Ryser's formula: Let G be a graph with an independent set of size `. Then the number of perfect matchings in G can be found in time O(2n−`n3).
    [Show full text]
  • Approximation Algorithms for Graph Homomorphism Problems
    Approximation Algorithms for Graph Homomorphism Problems Michael Langberg?1, Yuval Rabani??2, and Chaitanya Swamy3 1 Dept. of Computer Science, Caltech, Pasadena, CA 91125. [email protected] 2 Computer Science Dept., Technion — Israel Institute of Technology, Haifa 32000, Israel. [email protected] 3 Center for the Mathematics of Information, Caltech, Pasadena, CA 91125. [email protected] Abstract. We introduce the maximum graph homomorphism (MGH) problem: given a graph G, and a target graph H, find a mapping ϕ : VG 7→ VH that maximizes the number of edges of G that are mapped to edges of H. This problem encodes various fundamental NP-hard prob- lems including Maxcut and Max-k-cut. We also consider the multiway uncut problem. We are given a graph G and a set of terminals T ⊆ VG. We want to partition VG into |T | parts, each containing exactly one terminal, so as to maximize the number of edges in EG having both endpoints in the same part. Multiway uncut can be viewed as a special case of prela- 0 beled MGH where one is also given a prelabeling ϕ : U 7→ VH ,U ⊆ VG, and the output has to be an extension of ϕ0. Both MGH and multiway uncut have a trivial 0.5-approximation algo- rithm. We present a 0.8535-approximation algorithm for multiway uncut based on a natural linear programming relaxation. This relaxation has 6 an integrality gap of 7 ' 0.8571, showing that our guarantee is almost 1 tight. For maximum graph homomorphism, we show that a 2 + ε0 - approximation algorithm, for any constant ε0 > 0, implies an algorithm for distinguishing between certain average-case instances of the subgraph isomorphism problem that appear to be hard.
    [Show full text]
  • Homomorphisms of Cayley Graphs and Cycle Double Covers
    Homomorphisms of Cayley Graphs and Cycle Double Covers Radek Huˇsek Robert S´amalˇ ∗ Computer Science Institute Charles University Prague, Czech Republic fhusek,[email protected] Submitted: Jan 16, 2019; Accepted: Dec 31, 2019; Published: Apr 3, 2020 c The authors. Released under the CC BY license (International 4.0). Abstract We study the following conjecture of Matt DeVos: If there is a graph homomor- phism from a Cayley graph Cay(M; B) to another Cayley graph Cay(M 0;B0) then every graph with an (M; B)-flow has an (M 0;B0)-flow. This conjecture was origi- nally motivated by the flow-tension duality. We show that a natural strengthening of this conjecture does not hold in all cases but we conjecture that it still holds for an interesting subclass of them and we prove a partial result in this direction. We also show that the original conjecture implies the existence of an oriented cycle double cover with a small number of cycles. Mathematics Subject Classifications: 05C60, 05C21, 05C15 1 Introduction For an abelian group M (all groups in this article are abelian even though we often do not say it explicitly), an M-flow ' on a directed graph G = (V; E) is a mapping E ! M such that the oriented sum around every vertex v is zero: X X '(vw) − '(uv) = 0: vw2E uv2E We say that M-flow ' is an (M; B)-flow if '(e) 2 B for all e 2 E. We always assume that B ⊆ M and that B is symmetric, i. e., B = −B.
    [Show full text]
  • LNCS 3729, Pp
    RDF Entailment as a Graph Homomorphism Jean-Fran¸cois Baget INRIA Rhˆone-Alpes, 655 avenue de l’Europe, 38334, Saint Ismier, France [email protected] Abstract. Semantic consequence (entailment) in RDF is ususally com- puted using Pat Hayes Interpolation Lemma. In this paper, we reformu- late this mechanism as a graph homomorphism known as projection in the conceptual graphs community. Though most of the paper is devoted to a detailed proof of this result, we discuss the immediate benefits of this reformulation: it is now easy to translate results from different communities (e.g. conceptual graphs, constraint programming, . ) to obtain new polynomial cases for the NP- complete RDF entailment problem, as well as numerous algorithmic optimizations. 1 Introduction Simple RDF is the knowledge representation language on which RDF (Resource Description Framework) and its extension RDFS are built. As a logic, it is pro- vided with a syntax (its abstract syntax will be used here), and model theoretic semantics [1]. These semantics are used to define entailments: an RDF graph G entails an RDF graph H iff H is true whenever G is. However, since an infinity of interpretations must be evaluated according to this definition, an operational inference mechanism, sound and complete w.r.t. entailment, is needed. This is the purpose of the interpolation lemma [1]: a finite procedure characterizing en- tailments. It has been extended to take into account more expressive languages (RDF, RDFS [1], and other languages e.g. [2]). All these extensions rely on a polynomial-time initial treatment of the graphs, the hard kernel remaining the basic simple entailment, which is a NP-hard problem.
    [Show full text]
  • Geometric Graph Homomorphisms
    1 Geometric Graph Homomorphisms Debra L. Boutin Department of Mathematics Hamilton College, Clinton, NY 13323 [email protected] Sally Cockburn Department of Mathematics Hamilton College, Clinton, NY 13323 [email protected] Abstract A geometric graph G is a simple graph drawn on points in the plane, in general position, with straightline edges. A geometric homo- morphism from G to H is a vertex map that preserves adjacencies and crossings. This work proves some basic properties of geometric homo- morphisms and defines the geochromatic number as the minimum n so that there is a geometric homomorphism from G to a geometric n-clique. The geochromatic number is related to both the chromatic number and to the minimum number of plane layers of G. By pro- viding an infinite family of bipartite geometric graphs, each of which is constructed of two plane layers, which take on all possible values of geochromatic number, we show that these relationships do not de- termine the geochromatic number. This paper also gives necessary (but not sufficient) and sufficient (but not necessary) conditions for a geometric graph to have geochromatic number at most four. As a corollary we get precise criteria for a bipartite geometric graph to have geochromatic number at most four. This paper also gives criteria for a geometric graph to be homomorphic to certain geometric realizations of K2;2 and K3;3. 1 Introduction Much work has been done studying graph homomorphisms. A graph homo- morphism f : G ! H is a vertex map that preserves adjacencies (but not necessarily non-adjacencies). If such a map exists, we write G ! H and 2 say `G is homomorphic to H.' As of this writing, there are 166 research pa- pers and books addressing graph homomorphisms.
    [Show full text]
  • Exact Algorithms for Graph Homomorphisms∗
    Exact Algorithms for Graph Homomorphisms∗ Fedor V. Fomin† Pinar Heggernes† Dieter Kratsch‡ Abstract Graph homomorphism, also called H-coloring, is a natural generalization of graph coloring: There is a homomorphism from a graph G to a complete graph on k vertices if and only if G is k-colorable. During the recent years the topic of exact (exponential-time) algorithms for NP-hard problems in general, and for graph coloring in particular, has led to extensive research. Consequently, it is natural to ask how the techniques developed for exact graph coloring algorithms can be extended to graph homomorphisms. By the celebrated result of Hell and Neˇsetˇril, for each fixed simple graph H, deciding whether a given simple graph G has a homomorphism to H is polynomial-time solvable if H is a bipartite graph, and NP-complete otherwise. The case where H is a cycle of length 5 is the first NP-hard case different from graph coloring. We show that, for a given graph G on n vertices and an odd integer k ≥ 5, whether G is homomorphic to n n/2 O(1) a cycle of length k can be decided in time min{ n/k , 2 }· n . We extend the results obtained for cycles, which are graphs of treewidth two, to graphs of bounded treewidth as follows: If H is of treewidth at most t, then whether G is homomorphic to H can be decided in time (2t + 1)n · nO(1). Topic: Design and Analysis of Algorithms. Keywords: Exact algorithms, homomorphism, coloring, treewidth. ∗This work is supported by the AURORA mobility programme for research collaboration between France and Norway.
    [Show full text]
  • Homomorphisms of Signed Graphs: an Update Reza Naserasr, Eric Sopena, Thomas Zaslavsky
    Homomorphisms of signed graphs: An update Reza Naserasr, Eric Sopena, Thomas Zaslavsky To cite this version: Reza Naserasr, Eric Sopena, Thomas Zaslavsky. Homomorphisms of signed graphs: An update. European Journal of Combinatorics, Elsevier, inPress, 10.1016/j.ejc.2020.103222. hal-02429415v2 HAL Id: hal-02429415 https://hal.archives-ouvertes.fr/hal-02429415v2 Submitted on 17 Oct 2020 HAL is a multi-disciplinary open access L’archive ouverte pluridisciplinaire HAL, est archive for the deposit and dissemination of sci- destinée au dépôt et à la diffusion de documents entific research documents, whether they are pub- scientifiques de niveau recherche, publiés ou non, lished or not. The documents may come from émanant des établissements d’enseignement et de teaching and research institutions in France or recherche français ou étrangers, des laboratoires abroad, or from public or private research centers. publics ou privés. Homomorphisms of signed graphs: An update Reza Naserasra, Eric´ Sopenab, Thomas Zaslavskyc aUniversit´ede Paris, IRIF, CNRS, F-75013 Paris, France. E-mail: [email protected] b Univ. Bordeaux, Bordeaux INP, CNRS, LaBRI, UMR5800, F-33400 Talence, France cDepartment of Mathematical Sciences, Binghamton University, Binghamton, NY 13902-6000, U.S.A. Abstract A signed graph is a graph together with an assignment of signs to the edges. A closed walk in a signed graph is said to be positive (negative) if it has an even (odd) number of negative edges, counting repetition. Recognizing the signs of closed walks as one of the key structural properties of a signed graph, we define a homomorphism of a signed graph (G; σ) to a signed graph (H; π) to be a mapping of vertices and edges of G to (respectively) vertices and edges of H which preserves incidence, adjacency and the signs of closed walks.
    [Show full text]