Firsov (1965) was the first to study isometric embeddings of graphs into hypercubes. The graphs that admit such embeddings were characterized by Djoković (1973) and Winkler (1984), and were later named partial cubes. A separate line of research on the same structures, in the terminology of families of sets rather than of hypercube labelings of graphs, was followed by Kuzmin & Ovchinnikov (1975) and Falmagne & Doignon (1997), among others.2
Every tree is a partial cube. For, suppose that a tree T has m edges, and number these edges (arbitrarily) from 0 to m – 1. Choose a root vertex r for the tree, arbitrarily, and label each vertex v with a string of m bits that has a 1 in position i whenever edge i lies on the path from r to v in T. For instance, r itself will have a label that is all zero bits, its neighbors will have labels with a single 1-bit, etc. Then the Hamming distance between any two labels is the distance between the two vertices in the tree, so this labeling shows that T is a partial cube.
Every hypercube graph is itself a partial cube, which can be labeled with all the different bitstrings of length equal to the dimension of the hypercube.
More complex examples include the following:
Many of the theorems about partial cubes are based directly or indirectly upon a certain binary relation defined on the edges of the graph. This relation, first described by Djoković (1973) and given an equivalent definition in terms of distances by Winkler (1984), is denoted by Θ {\displaystyle \Theta } . Two edges e = { x , y } {\displaystyle e=\{x,y\}} and f = { u , v } {\displaystyle f=\{u,v\}} are defined to be in the relation Θ {\displaystyle \Theta } , written e Θ f {\displaystyle e{\mathrel {\Theta }}f} , if d ( x , u ) + d ( y , v ) ≠ d ( x , v ) + d ( y , u ) {\displaystyle d(x,u)+d(y,v)\not =d(x,v)+d(y,u)} . This relation is reflexive and symmetric, but in general it is not transitive.
Winkler showed that a connected graph is a partial cube if and only if it is bipartite and the relation Θ {\displaystyle \Theta } is transitive.8 In this case, it forms an equivalence relation and each equivalence class separates two connected subgraphs of the graph from each other. A Hamming labeling may be obtained by assigning one bit of each label to each of the equivalence classes of the Djoković–Winkler relation; in one of the two connected subgraphs separated by an equivalence class of edges, all of the vertices have a 0 in that position of their labels, and in the other connected subgraph all of the vertices have a 1 in the same position.
Partial cubes can be recognized, and a Hamming labeling constructed, in O ( n 2 ) {\displaystyle O(n^{2})} time, where n {\displaystyle n} is the number of vertices in the graph.9 Given a partial cube, it is straightforward to construct the equivalence classes of the Djoković–Winkler relation by doing a breadth first search from each vertex, in total time O ( n m ) {\displaystyle O(nm)} ; the O ( n 2 ) {\displaystyle O(n^{2})} -time recognition algorithm speeds this up by using bit-level parallelism to perform multiple breadth first searches in a single pass through the graph, and then applies a separate algorithm to verify that the result of this computation is a valid partial cube labeling.
The isometric dimension of a partial cube is the minimum dimension of a hypercube onto which it may be isometrically embedded, and is equal to the number of equivalence classes of the Djoković–Winkler relation. For instance, the isometric dimension of an n {\displaystyle n} -vertex tree is its number of edges, n − 1 {\displaystyle n-1} . An embedding of a partial cube onto a hypercube of this dimension is unique, up to symmetries of the hypercube.10
Every hypercube and therefore every partial cube can be embedded isometrically into an integer lattice. The lattice dimension of a graph is the minimum dimension of an integer lattice into which the graph can be isometrically embedded. The lattice dimension may be significantly smaller than the isometric dimension; for instance, for a tree it is half the number of leaves in the tree (rounded up to the nearest integer). The lattice dimension of any graph, and a lattice embedding of minimum dimension, may be found in polynomial time by an algorithm based on maximum matching in an auxiliary graph.11
Other types of dimension of partial cubes have also been defined, based on embeddings into more specialized structures.12
Isometric embeddings of graphs into hypercubes have an important application in chemical graph theory. A benzenoid graph is a graph consisting of all vertices and edges lying on and in the interior of a cycle in a hexagonal lattice. Such graphs are the molecular graphs of the benzenoid hydrocarbons, a large class of organic molecules. Every such graph is a partial cube. A Hamming labeling of such a graph can be used to compute the Wiener index of the corresponding molecule, which can then be used to predict certain of its chemical properties.13
A different molecular structure formed from carbon, the diamond cubic, also forms partial cube graphs.14
Ovchinnikov (2011), Definition 5.1, p. 127. - Ovchinnikov, Sergei (2011), Graphs and Cubes, Universitext, Springer ↩
Ovchinnikov (2011), p. 174. - Ovchinnikov, Sergei (2011), Graphs and Cubes, Universitext, Springer ↩
Ovchinnikov (2011), Section 5.11, "Median Graphs", pp. 163–165. - Ovchinnikov, Sergei (2011), Graphs and Cubes, Universitext, Springer ↩
Ovchinnikov (2011), Chapter 7, "Hyperplane Arrangements", pp. 207–235. - Ovchinnikov, Sergei (2011), Graphs and Cubes, Universitext, Springer ↩
Eppstein (2006). - Eppstein, David (2006), "Cubic partial cubes from simplicial arrangements", Electronic Journal of Combinatorics, 13 (1), R79, arXiv:math.CO/0510263, doi:10.37236/1105, S2CID 8608953 http://www.combinatorics.org/Volume_13/Abstracts/v13i1r79.html ↩
Ovchinnikov (2011), Section 5.7, "Cartesian Products of Partial Cubes", pp. 144–145. - Ovchinnikov, Sergei (2011), Graphs and Cubes, Universitext, Springer ↩
Beaudou, Gravier & Meslem (2008). - Beaudou, Laurent; Gravier, Sylvain; Meslem, Kahina (2008), "Isometric embeddings of subdivided complete graphs in the hypercube" (PDF), SIAM Journal on Discrete Mathematics, 22 (3): 1226–1238, doi:10.1137/070681909, MR 2424849, S2CID 6332951 https://hal.archives-ouvertes.fr/hal-00187039/file/clique_partial_cubes.pdf ↩
Winkler (1984), Theorem 4. See also Ovchinnikov (2011), Definition 2.13, p.29, and Theorem 5.19, p. 136. - Winkler, Peter M. (1984), "Isometric embedding in products of complete graphs", Discrete Applied Mathematics, 7 (2): 221–225, doi:10.1016/0166-218X(84)90069-6, MR 0727925 https://doi.org/10.1016%2F0166-218X%2884%2990069-6 ↩
Eppstein (2008). - Eppstein, David (2008), "Recognizing partial cubes in quadratic time", Proc. 19th ACM-SIAM Symposium on Discrete Algorithms, pp. 1258–1266, arXiv:0705.1025, Bibcode:2007arXiv0705.1025E https://arxiv.org/abs/0705.1025 ↩
Ovchinnikov (2011), Section 5.6, "Isometric Dimension", pp. 142–144, and Section 5.10, "Uniqueness of Isometric Embeddings", pp. 157–162. - Ovchinnikov, Sergei (2011), Graphs and Cubes, Universitext, Springer ↩
Hadlock & Hoffman (1978); Eppstein (2005); Ovchinnikov (2011), Chapter 6, "Lattice Embeddings", pp. 183–205. - Hadlock, F.; Hoffman, F. (1978), "Manhattan trees", Utilitas Mathematica, 13: 55–67 ↩
Eppstein (2009); Cabello, Eppstein & Klavžar (2011). - Eppstein, David (2009), "Isometric diamond subgraphs", Proc. 16th International Symposium on Graph Drawing, Heraklion, Crete, 2008, Lecture Notes in Computer Science, vol. 5417, Springer-Verlag, pp. 384–389, arXiv:0807.2218, doi:10.1007/978-3-642-00219-9_37, ISBN 978-3-642-00218-2, S2CID 14066610 https://arxiv.org/abs/0807.2218 ↩
Klavžar, Gutman & Mohar (1995), Propositions 2.1 and 3.1; Imrich & Klavžar (2000), p. 60; Ovchinnikov (2011), Section 5.12, "Average Length and the Wiener Index", pp. 165–168. - Klavžar, Sandi; Gutman, Ivan; Mohar, Bojan (1995), "Labeling of benzenoid systems which reflects the vertex-distance relations" (PDF), Journal of Chemical Information and Computer Sciences, 35 (3): 590–593, doi:10.1021/ci00025a030 http://www.fmf.uni-lj.si/~klavzar/preprints/labeling-benzi.pdf ↩
Eppstein (2009). - Eppstein, David (2009), "Isometric diamond subgraphs", Proc. 16th International Symposium on Graph Drawing, Heraklion, Crete, 2008, Lecture Notes in Computer Science, vol. 5417, Springer-Verlag, pp. 384–389, arXiv:0807.2218, doi:10.1007/978-3-642-00219-9_37, ISBN 978-3-642-00218-2, S2CID 14066610 https://arxiv.org/abs/0807.2218 ↩