Abstract
A median graph G is a graph where, for any three vertices u, v and w, there is a unique node that lies on a shortest path from u to v, from u to w, and from v to w. While not obvious from the definition, median graphs are partial cubes; that is, they can be isometrically embedded in hypercubes and, consequently, in integer lattices. The isometric and lattice dimensions of G, denoted as dim I (G) and dim Z (G), are the smallest integers k and r so that G can be isometrically embedded in the k-dimensional hypercube and the r-dimensional lattice respectively. Motivated by recent results on the cover graphs of distributive lattices, we study these parameters through median semilattices, a class of ordered structures related to median graphs. We show that not only does this approach provide new combinatorial characterizations for dim I (G) and dim Z (G), they also have nice algorithmic consequences. Assume G has n vertices and m edges. We prove that dim I (G) can be computed in O(n + m) time, and an isometric embedding of G on a hypercube with dimension dim I (G) can be constructed in O(n × dim I (G)) time. The algorithms are extremely simple and the running times are optimal. We also show that dim Z (G) can be computed and an isometric embedding of G on a lattice with dimension dim Z (G) can be constructed in \(O( n \times dim_I(G) + dim_I(G)^{2.5})\) time by using an existing algorithm of Eppstein’s that performs the same tasks for partial cubes. We are able to speed up his algorithm by using our framework to provide a new “interpretation” to the algorithm. In particular, we note that its main part is essentially a generalization of Fulkerson’s method for finding a smallest-sized chain decomposition of a poset.
Similar content being viewed by others
References
Avann, S.: Metric ternary distributive semi-lattices. Proc. Am. Math. Soc. 12, 407–414 (1961)
Bandelt, H., Chepoi, V.: Metric graph theory and geometry: a survey. Contemp. Math. 453, 49–86 (2008)
Barthélemy, J., Constantin, J.: Median graphs, parallelism and posets. Discrete Math. 111, 49–63 (1993)
Birkhoff, G.: Rings of sets. Duke Math. J. 3, 443–454 (1937)
Cheng, C., Lin, A.: Stable roommates matchings, mirror posets, median graphs and the local/global median phenomenon in stable matchings. SIAM J. Discrete Math. 25, 72–94 (2011)
Cheng, C., Suzuki, I.: Weak sense of direction labelings and graph embeddings. Discrete Appl. Math. 159, 303–310 (2011)
Chepoi, V.: Graphs of some CAT(0) complexes. Adv. Appl. Math. 24, 125–179 (2000)
Cormen, T., Leiserson, C., Rivest, R., Stein, C.: Introduction to Algorithms, 2nd edn. The MIT Press (2001)
Dilworth, R.: A decomposition theorem for partially ordered sets. Ann. Math. 51, 161–166 (1950)
Djoković, D.: Distance preserving subgraphs of hypercubes. J. Comb. Theory, Ser. B 14, 263–267 (1973)
Eppstein, D.: The lattice dimension of a graph. Eur. J. Comb. 26, 585–592 (2005)
Feder, T.: Stable networks and product graphs. Memoirs of the American Mathematical Society, vol. 116. AMS Bookstore (1995)
Fulkerson, D.: Note on Dilworths decomposition theorem for partially ordered sets. Proc. Am. Math. Soc. 7, 701–702 (1956)
Graham, R., Winkler, P.: On isometric embeddings of graphs. Trans. Am. Math. Soc. 288(2), 527–536 (1985)
Hadlock, F., Hoffman, F.: Manhattan trees. Util. Math. 13, 55–67 (1978)
Hagauer, J., Imrich, W., Klavžar, S.: Recognizing median graphs in subquadratic time. Theor. Comp. Sci. 215(1–2), 123–136 (1999)
Imrich, W., Klavz̆ar, S.: Product Graphs: Structure and Recognition. John Wiley and Sons (2000)
Imrich, W., Kovše, M.: Lattice embeddings of trees. Eur. J. Comb. 30(5), 1142–1148 (2009)
Klavžar, S., Mulder, H.: Median graphs: characterizations, location theory and related structures. J. Comb. Math. Comb. Comput. 30, 103–127 (1999)
Knuth, D.: The Art of Computer Programming, vol. IV. Addison-Wesley (2008)
Laurent, M.: Embeddings of graphs. Technical Report LIENS-94-6, Laboratoire d’Informatique, Ecole Normale Supérieure (1994)
Micali, S., Vazirani, V.: An \({O(\sqrt{V}E})\) algorithm for finding maximum matchings in general graphs. In: Proceedings of the 21st Annual IEEE Symposium on Foundations of Computer Science, pp. 17–27 (1980)
Ovchinnikov, S.: The Lattice Dimension of a Tree. Manuscript (2004)
Schnyder, W.: Planar graphs and poset dimension. Order 5, 323–343 (1989)
Winkler, P.: Isometric embedding in products of complete graphs. Discrete Appl. Math. 7(2), 221–225 (1984)
Author information
Authors and Affiliations
Corresponding author
Additional information
Christine T. Cheng was supported by NSF Award No. CCF-0830678.
Rights and permissions
About this article
Cite this article
Cheng, C.T. A Poset-based Approach to Embedding Median Graphs in Hypercubes and Lattices. Order 29, 147–163 (2012). https://doi.org/10.1007/s11083-011-9203-7
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s11083-011-9203-7