Article · Wikipedia archive · Last revised Jul 13, 2026

Cubicity

In the mathematical field of graph theory, cubicity is a graph invariant defined to be the smallest dimension such that a graph can be realized as the intersection graph of axis-parallel unit cubes in Euclidean space. Cubicity was introduced by Fred S. Roberts in 1969, along with a related invariant called boxicity that considers the smallest dimension needed to represent a graph as the intersection graph of axis-parallel rectangles in Euclidean space.

Last revised
Jul 13, 2026
Read time
≈ 6 min
Length
1,409 w
Citations
20
Source
A graph with cubicity 2, realized as the intersection graph of axis-parallel unit 2-cubes, i.e. axis-parallel unit squares, in the plane. source ↗

In the mathematical field of graph theory, cubicity is a graph invariant defined to be the smallest dimension such that a graph can be realized as the intersection graph of axis-parallel unit cubes in Euclidean space.1 Cubicity was introduced by Fred S. Roberts in 1969, along with a related invariant called boxicity that considers the smallest dimension needed to represent a graph as the intersection graph of axis-parallel rectangles in Euclidean space.2

An indifference graph with cubicity 1, realized as the intersection graph of unit 1-cubes, i.e. unit intervals, on the real number line. source ↗

Definition

This article only considers simple, undirected graphs, with finite and non-empty vertex sets.34

The cubicity of a graph G {\displaystyle G} , denoted by cub ( G ) {\displaystyle \operatorname {cub} (G)} , is the smallest integer k {\displaystyle k} such that G {\displaystyle G} can be represented as the intersection graph of axis-parallel closed unit k {\displaystyle k} -cubes in k {\displaystyle k} -dimensional Euclidean space, E k {\displaystyle \mathrm {E} ^{k}} .567

For k 1 {\displaystyle k\geq 1} , a graph G {\displaystyle G} can have such a representation in E k {\displaystyle \mathrm {E} ^{k}} if and only if G {\displaystyle G} is the intersection of k {\displaystyle k} indifference graphs on the same vertex set as G {\displaystyle G} .8

The cubicity of a complete graph is defined to be zero.9

Relations to certain graph classes, upper bound

For a graph G ,   cub ( G ) = 0   {\displaystyle G,~\operatorname {cub} (G)=0~} if and only if G {\displaystyle G} is complete.10

For a graph G ,   cub ( G ) = 1   {\displaystyle G,~\operatorname {cub} (G)=1~} if and only if G {\displaystyle G} is a unit interval graph that is not complete.11

For n N ,   cub ( K 1 , n ) = log 2 ( 2 n 1 ) ,   {\displaystyle n\in \mathbb {N} ^{*}\!,~\operatorname {cub} (K_{1,n})=\lfloor \log _{2}(2n-1)\rfloor ,~} where K 1 , n {\displaystyle K_{1,n}} denotes the star graph of ( 1 {\displaystyle 1} center and) n {\displaystyle n} vertices, and {\displaystyle \lfloor \cdot \rfloor } denotes the floor function.1213

For p N ,   cub ( K p ( 2 ) ) = p ,   {\displaystyle p\in \mathbb {N} ^{*}\!,~\operatorname {cub} (K_{p(2)})=p,~} where K p ( 2 ) {\displaystyle K_{p(2)}} denotes the complete multipartite graph with p {\displaystyle p} parts of cardinal 2 {\displaystyle 2} .1415

For a graph G {\displaystyle G} on n {\displaystyle n} vertices,   cub ( G ) 2 n / 3 .   {\displaystyle ~\operatorname {cub} (G)\leq \lfloor 2n/3\rfloor .~} Moreover, this upper bound is best possible in terms of n {\displaystyle n} .1617

Relations to other graph dimensions

Relations to boxicity: bounds

The cubicity of a graph G {\displaystyle G} is closely related to its boxicity, denoted by box ( G ) . {\displaystyle \operatorname {box} (G).} The definition of boxicity is essentially the same as that of cubicity, but with axis-parallel boxes instead of axis-parallel unit cubes.

Since a cube is a special case of a box, the cubicity of a graph G {\displaystyle G} is always an upper bound for its boxicity, i.e.,   box ( G ) cub ( G ) . {\displaystyle ~\operatorname {box} (G)\leq \operatorname {cub} (G).}

In the other direction, it can be shown that for a graph G {\displaystyle G} on n {\displaystyle n} vertices,   cub ( G ) log 2 n box ( G ) ,   {\displaystyle ~\operatorname {cub} (G)\leq \lceil \log _{2}n\rceil \operatorname {box} (G),~} where {\displaystyle \lceil \cdot \rceil } denotes the ceiling function. Moreover, this upper bound is tight.18

Relations to sphericity

The sphericity of a graph G , {\displaystyle G,} denoted by sph ( G ) , {\displaystyle \operatorname {sph} (G),} is defined in the same way as cubicity but with congruent spheres instead of axis-parallel unit cubes.

For certain graphs, cubicity exceeds sphericity; the five-pointed star, K 1 , 5 , {\displaystyle K_{1,5},} is an example:   cub ( K 1 , 5 ) = 3 > sph ( K 1 , 5 ) = 2. {\displaystyle ~\operatorname {cub} (K_{1,5})=3>\operatorname {sph} (K_{1,5})=2.} 19

In the other direction, graphs G {\displaystyle G} can be constructed so that   sph ( G ) > cub ( G ) = k ,   {\displaystyle ~\operatorname {sph} (G)>\operatorname {cub} (G)=k,~} for k { 2 , 3 } . {\displaystyle k\in \{2,3\}.} 20

Notes

Notes

  1. Fishburn (1983, p. 309, Section 1)
  2. Roberts (1969, pp. 301–310)
  3. Chandran & Mathew (2009, p. 2, Section 1)
  4. Fishburn (1983, p. 309, Section 1)
  5. Roberts (1969, p. 302, Section 1) uses closed cubes of side-length 1 {\displaystyle 1} .
    Footnote 1 on p. 302: "Boxes are not necessarily closed, though it is not hard to show that if a representation [of G {\displaystyle G} ] is attainable with [open] boxes in E k {\displaystyle \mathrm {E} ^{k}} , it is attainable with closed boxes in E k {\displaystyle \mathrm {E} ^{k}} .".
  6. Chandran & Mathew (2009, p. 2, Section 1, Definition 4) use Cartesian products of closed intervals [ a i , a i + 1 ] {\displaystyle [a_{i},a_{i}+1]} .
  7. Fishburn (1983, p. 309, Section 1)
  8. Roberts (1969, pp. 302–303, Section 2)
    Indeed:   u , v V ( G ) , {\displaystyle \forall ~u,v\in \mathrm {V} (G),} { u , v } E ( G ) {\displaystyle \{u,v\}\in \mathrm {E} (G)} iff f ( u ) f ( v ) 1 , {\displaystyle \|f(u)-f(v)\|_{\infty }\leq 1,} iff     1 i k ,   | f i ( u ) f i ( v ) | 1 ,   {\displaystyle ~\forall ~1\leq i\leq k,~|f_{i}(u)-f_{i}(v)|\leq 1,~} i.e.,   { u , v } E ( G i ) . {\displaystyle ~\{u,v\}\in \mathrm {E} (G_{i}).}
    And so:   u , w V ( G ) , {\displaystyle \forall ~u,w\in \mathrm {V} (G),} { u , w } E ( G ) {\displaystyle \{u,w\}\notin \mathrm {E} (G)} iff f ( u ) f ( w ) > 1 , {\displaystyle \|f(u)-f(w)\|_{\infty }>1,} iff     1 i k   {\displaystyle ~\exists ~1\leq i\leq k~} such that   | f i ( u ) f i ( w ) | > 1 ,   {\displaystyle ~|f_{i}(u)-f_{i}(w)|>1,~} i.e.,   { u , w } E ( G i ) ; {\displaystyle ~\{u,w\}\notin \mathrm {E} (G_{i});}
    but     1 j i k ,   | f j ( u ) f j ( w ) | {\displaystyle ~\forall ~1\leq j\neq i\leq k,~|f_{j}(u)-f_{j}(w)|} may be 1 ,   {\displaystyle \leq 1,~} i.e.,   { u , w } {\displaystyle ~\{u,w\}} may E ( G j ) . {\displaystyle \in \mathrm {E} (G_{j}).}
  9. Chandran & Mathew (2009, p. 2, Section 1, Definition 4)
  10. Roberts (1969, p. 304, Section 3, Proof of Theorem 2)
  11. Fishburn (1983, p. 310, Section 1)
  12. Roberts (1969, p. 303, Section 3, Theorem 1)
  13. That is, cub(K1,n) = ⌈log₂(n)⌉. Proof: ∀ n ∈ ℕ*, 1 ≤ n; so, 0 < n ≤ 2n−1. ∀ n ∈ ℕ*, ∃! c ∈ ℕ such that n ≤ 2ᶜ ≤ 2n−1 (namely, c is the least k ∈ ℕ such that n ≤ 2ᵏ); so, ∃! c ∈ ℕ such that log₂(n) ≤ c ≤ log₂(2n−1). So, ⌈log₂(n)⌉ = c = ⌊log₂(2n−1)⌋.
  14. Fishburn (1983, p. 310, Section 1)
  15. Roberts (1969, p. 304, Section 3, Theorem 2)
  16. Fishburn (1983, p. 310, Section 1)
  17. Roberts (1969, p. 306, Section 4, Theorem 5)
  18. Chandran & Mathew (2009, p. 3, Section 2, Theorem 1)
  19. Fishburn (1983, p. 309, Section 1)
  20. Fishburn (1983, pp. 310–318, Sections 2–3)
References

References