title: Sitting Closer to Friends than Enemies, Revisited.
abstract: Signed graphs, i.e., undirected graphs with edges labelled with a plus or minus sign, are commonly used to model relationships in social networks. Recently, Kermarrec and Thraves (2011) initiated the study of the problem of appropriately visualising the network: They asked whether any signed graph can be embedded into the metric space [Formula: see text] in such a manner that every vertex is closer to all its friends (neighbours via positive edges) than to all its enemies (neighbours via negative edges). Interestingly, embeddability into [Formula: see text] can be expressed as a purely combinatorial problem. In this paper we pursue a deeper study of this case, answering several questions posed by Kermarrec and Thraves. First, we refine the approach of Kermarrec and Thraves for the case of complete signed graphs by showing that the problem is closely related to the recognition of proper interval graphs. Second, we prove that the general case, whose polynomial-time tractability remained open, is in factNP-complete. Finally, we provide lower and upper bounds for the time complexity of the general case: we prove that the existence of a subexponential time (in the number of vertices and edges of the input signed graph) algorithm would violate the Exponential Time Hypothesis, whereas a simple dynamic programming approach gives a running time single-exponential in the number of vertices.
authors: Institute of Informatics, University of Warsaw, Warsaw, Poland.
authors: Marek
authors: M
authors: Cygan
authors: Institute of Informatics, University of Warsaw, Warsaw, Poland.
authors: Marcin
authors: M
authors: Pilipczuk
authors: Department of Informatics, University of Bergen, Bergen, Norway.
authors: Michał
authors: M
authors: Pilipczuk
authors: Google Inc., Warsaw, Poland.
authors: Jakub Onufry
authors: JO
authors: Wojtaszczyk
keywords: Embedding into metric space; Relationships; Signed graphs