A commutative diagram is a diagram in the form of a directed graph,
where each edge represents a Morphism,
and each node represents an Object
such that for any nodes and , and any walk between them,
composing the morphisms on that walk always gives the same result.
Additionally, we assume that each node has the identity morphism on it,
making any cycle in the graph an identity.

Example

This diagram is commutative if and only if

Example

This diagram is commutative if and only if