There are $3^3 = 27$ functions $f : \{a, b, c\} \to \{a, b, c\}$. Select a property to filter them, or group them by type.
The $27$ functions at coordinates $(f(a), f(b), f(c))$ in a $3 \times 3 \times 3$ cube. Drag or press Spin to rotate; click a point to inspect.
Definitions
Notes
Types. Two functions are the same type if one becomes the other by relabeling $a, b, c$ (replacing $f$ by $\sigma \circ f \circ \sigma^{-1}$). The $27$ functions fall into $\mathbf{7}$ types. Functions in the same type share the same properties, so Group by type highlights entire pods at once.
Injective = surjective = bijective. On a finite set, injective and surjective are equivalent, so both reduce to bijective: the six permutations. The three conditions coincide here, hence a single Bijective toggle.
Edges. An edge connects two functions that agree on two inputs and differ on the third. In 3D these are the grid lines of the cube; in 2D they are drawn faint. With Group by type on, two types are connected if any member of one is adjacent to any member of the other.
This interactive was designed for a desktop browser with a mouse or trackpad. Some of the interactions are awkward when using a phone or smaller device. You are welcome to continue anyway.
Link copied.