Picturing Finite Relations as Graphs

24 August 2023

On the previous post about Algebraic Path Finding, I made some figures illustrating how a finite relation can be viewed a graph. This got me thinking about how certain usual notions on relations would translate to this graph world.

This is a mostly visual post illustrating the graphs for many common kinds of relations.

Common Properties

Browser lacks SVG support.
Browser lacks SVG support.
Browser lacks SVG support.
Browser lacks SVG support.
Browser lacks SVG support.
Browser lacks SVG support.
Browser lacks SVG support.
Browser lacks SVG support.

Common Relations

Equality

Possibly the most famous relation among all is equality. An element is only equal to itself, meaning that there are only self-edges.

Browser lacks SVG support.

Equivalence Relations

Transitive, Reflexive and Symmetric.

Sometimes it is too strong to require equality of objects. It may be more interesting to look at things that are equivalent.

In an equivalence relation, the vertices are clustered into equivalence classes. An edge exists if and only if the vertices are on the same class.

Browser lacks SVG support.

Preorders

Transitive and Reflexive.

These are graphs where every path corresponds to an edge. That is, if two vertices are connected, then there is an edge between them.

Browser lacks SVG support.

Preorders contain all self-edges and composite edges. Thus, in order to reduce all the noise created by edges that must be there anyway, it is common to only picture the essential edges that cannot be generated from other paths. This is called the relation’s transitive reduction or its Hasse Diagram.

Browser lacks SVG support.

Partial Orders

Transitive, Reflexive and Antisymmetric.

By disallowing cycles in a preorder, what get what is called a partial order. These graphs flow in a certain direction, since a path cannot pass through the same vertices twice.

Browser lacks SVG support.

Again, to prevent all the noise, it is useful to look at the Hasse Diagram.

Browser lacks SVG support.

Total Orders

Transitive, Reflexive, Antisymmetric and Connected.

For these orders, there is also the requirement of existing and (undirected) edge between any pair of vertices.

Browser lacks SVG support.

They are also called Linear Orders because their Hasse Diagram consists of a single path.

Browser lacks SVG support.

Functions

Deterministic and Total.

How could I end this post without illustrating the most pervasive kind of relation in the entire field of mathematics? I’m so used to looking at functions as maps that I even forget that they are relations.

Functions are graphs where all vertices have a unique outgoing edge.

Browser lacks SVG support.
Spread the Word