In
graph theory
In mathematics, graph theory is the study of '' graphs'', which are mathematical structures used to model pairwise relations between objects. A graph in this context is made up of '' vertices'' (also called ''nodes'' or ''points'') which are conn ...
, a partial cube is a
graph
Graph may refer to:
Mathematics
*Graph (discrete mathematics), a structure made of vertices and edges
**Graph theory, the study of such graphs and their properties
*Graph (topology), a topological space resembling a graph in the sense of discre ...
that is
isometric
The term ''isometric'' comes from the Greek for "having equal measurement".
isometric may mean:
* Cubic crystal system, also called isometric crystal system
* Isometre, a rhythmic technique in music.
* "Isometric (Intro)", a song by Madeon from ...
to a
subgraph of a
hypercube
In geometry, a hypercube is an ''n''-dimensional analogue of a square () and a cube (). It is a closed, compact, convex figure whose 1-skeleton consists of groups of opposite parallel line segments aligned in each of the space's dimensions ...
. In other words, a partial cube can be identified with a subgraph of a hypercube in such a way that the
distance
Distance is a numerical or occasionally qualitative measurement of how far apart objects or points are. In physics or everyday usage, distance may refer to a physical length or an estimation based on other criteria (e.g. "two counties over"). ...
between any two vertices in the partial cube is the same as the distance between those vertices in the hypercube. Equivalently, a partial cube is a graph whose vertices can be labeled with
bit strings of equal length in such a way that the distance between two vertices in the graph is equal to the
Hamming distance between their labels. Such a labeling is called a ''Hamming labeling''; it represents an isometric
embedding of the partial cube into a hypercube.
History
was the first to study isometric embeddings of graphs into hypercubes. The graphs that admit such embeddings were characterized by and , 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 and , among others.
Examples

Every
tree
In botany, a tree is a perennial plant with an elongated stem, or trunk, usually supporting branches and leaves. In some usages, the definition of a tree may be narrower, including only woody plants with secondary growth, plants that are ...
is a partial cube. For, suppose that a tree has edges, and number these edges (arbitrarily) from to . Choose a root vertex for the tree, arbitrarily, and label each vertex with a string of bits that has a 1 in position whenever edge lies on the path from to in . For instance, 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
Distance is a numerical or occasionally qualitative measurement of how far apart objects or points are. In physics or everyday usage, distance may refer to a physical length or an estimation based on other criteria (e.g. "two counties over"). ...
between the two vertices in the tree, so this labeling shows that 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:
*Consider the graph whose vertex labels consist of all possible -digit bitstrings that have either or nonzero bits, where two vertices are adjacent whenever their labels differ by a single bit. This labeling defines an embedding of these graphs into a hypercube (the graph of all bitstrings of a given length, with the same adjacency-condition) that turns out to be distance-preserving. The resulting graph is a
bipartite Kneser graph; the graph formed in this way with has 20 vertices and 30 edges, and is called the
Desargues graph.
*All
median graph
In graph theory, a division of mathematics, a median graph is an undirected graph in which every three vertices ''a'', ''b'', and ''c'' have a unique ''median'': a vertex ''m''(''a'',''b'',''c'') that belongs to shortest paths between each pai ...
s are partial cubes. The trees and hypercube graphs are examples of median graphs. Since the median graphs include the
squaregraphs,
simplex graphs, and
Fibonacci cubes, as well as the covering graphs of finite
distributive lattices, these are all partial cubes.
*The
planar dual graph of an
arrangement of lines in the
Euclidean plane is a partial cube. More generally, for any
hyperplane arrangement in
Euclidean space
Euclidean space is the fundamental space of geometry, intended to represent physical space. Originally, that is, in Euclid's ''Elements'', it was the three-dimensional space of Euclidean geometry, but in modern mathematics there are Euclidean sp ...
of any number of dimensions, the graph that has a vertex for each cell of the arrangement and an edge for each two adjacent cells is a partial cube.
*A partial cube in which every vertex has exactly three neighbors is known as a
cubic
Cubic may refer to:
Science and mathematics
* Cube (algebra), "cubic" measurement
* Cube, a three-dimensional solid object bounded by six square faces, facets or sides, with three meeting at each vertex
** Cubic crystal system, a crystal system w ...
partial cube. Although several infinite families of cubic partial cubes are known, together with many other sporadic examples, the only known cubic partial cube that is not a
planar graph
In graph theory, a planar graph is a graph that can be embedded in the plane, i.e., it can be drawn on the plane in such a way that its edges intersect only at their endpoints. In other words, it can be drawn in such a way that no edges cro ...
is the Desargues graph.
*The underlying graph of any
antimatroid, having a vertex for each set in the antimatroid and an edge for every two sets that differ by a single element, is always a partial cube.
*The
Cartesian product
In mathematics, specifically set theory, the Cartesian product of two sets ''A'' and ''B'', denoted ''A''×''B'', is the set of all ordered pairs where ''a'' is in ''A'' and ''b'' is in ''B''. In terms of set-builder notation, that is
: A\ ...
of any finite set of partial cubes is another partial cube.
*A
subdivision of a
complete graph
In the mathematical field of graph theory, a complete graph is a simple undirected graph in which every pair of distinct vertices is connected by a unique edge. A complete digraph is a directed graph in which every pair of distinct vertices ...
is a partial cube if and only if either every complete graph edge is subdivided into a two-edge path, or there is one complete graph vertex whose incident edges are all unsubdivided and all non-incident edges have been subdivided into even-length paths.
The Djoković–Winkler relation
Many of the theorems about partial cubes are based directly or indirectly upon a certain
binary relation
In mathematics, a binary relation associates elements of one set, called the ''domain'', with elements of another set, called the ''codomain''. A binary relation over Set (mathematics), sets and is a new set of ordered pairs consisting of ele ...
defined on the edges of the graph. This relation, first described by and given an equivalent definition in terms of distances by , is denoted by
. Two edges
and
are defined to be in the relation
, written
, if
. 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
Bipartite may refer to:
* 2 (number)
* Bipartite (theology), a philosophical term describing the human duality of body and soul
* Bipartite graph, in mathematics, a graph in which the vertices are partitioned into two sets and every edge has an en ...
and the relation
is transitive. In this case, it forms an
equivalence relation
In mathematics, an equivalence relation is a binary relation that is reflexive, symmetric and transitive. The equipollence relation between line segments in geometry is a common example of an equivalence relation.
Each equivalence relatio ...
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.
Recognition
Partial cubes can be recognized, and a Hamming labeling constructed, in
time, where
is the number of vertices in the graph. 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
; the
-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.
Dimension
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
-vertex tree is its number of edges,
. An embedding of a partial cube onto a hypercube of this dimension is unique, up to symmetries of the hypercube.
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
In computer science, the time complexity is the computational complexity that describes the amount of computer time it takes to run an algorithm. Time complexity is commonly estimated by counting the number of elementary operations performed by ...
by an algorithm based on
maximum matching in an auxiliary graph.
Other types of dimension of partial cubes have also been defined, based on embeddings into more specialized structures.
Application to chemical graph theory
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 hydrocarbon
In organic chemistry, benzenoids are a class of organic compounds with at least one benzene ring. These compounds have increased stability due resonance in the benzene rings. Most aromatic hydrocarbons are benzenoid. Notable counterexamples are cyc ...
s, 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.
A different molecular structure formed from carbon, the
diamond cubic, also forms partial cube graphs.
[.]
Notes
References
*
*.
*.
*.
*.
*.
*.
*.
*. As cited by .
*. As cited by .
*.
*.
*. As cited by .
*. See especially Chapter 5, "Partial Cubes", pp. 127–181.
*{{citation
, last1 = Winkler , first1 = Peter M. , authorlink = Peter Winkler
, title = Isometric embedding in products of complete graphs
, journal = Discrete Applied Mathematics
, volume = 7 , issue = 2 , year = 1984 , pages = 221–225
, mr = 0727925
, doi = 10.1016/0166-218X(84)90069-6
, doi-access = free.
Graph families
Mathematical chemistry
Bipartite graphs