In mathematics, especially the many applications of category theory, a commutative diagram is a diagram of objects and morphisms such that, when picking two objects, one can follow any path through the diagram and obtain the same result by composition.
Since f = ho φ, the left diagram is commutative; and since φ = kof, so is the right diagram.
Similarly, the square above is commutative if yow = zox.
Commutativity makes sense for a polygon of any finite number of sides (including just 1 or 2), and a diagram is commutative if every polygonal subdiagram is commutative.
Next, we can associate to this special polygon a cuboid tree diagram by considering all even and odd vertices on the boundary (which are tinted red, respectively blue) together with all odd vertices in the interior of the special polygon.
If we connect these vertices with the geodesics in the polygon we get a cuboid tree diagram.
The obtained cuboid tree diagram is depicted on the right below.