Properties of Relations
In particular there are a few properties that we like to study when we talk about relations. These properties indicate the nature of the relation and can be used to classify them. Such as the Equivalence relation, and the Partial order relation.
Equivalence relation
An equivalence relation is a relation that is reflexive, symmetric and transitive.
Reflexive
A relation on a set is reflexive if for all , .
This can be seen in a graph as a self-loop on each node.
For example, the relation is reflexive.
In a matrix representation, we can see that the diagonal is filled with 1s.
Symmetric
A relation on a set is symmetric if for all , if then .
This can be seen in a graph as a bidirectional edge between two nodes.
For example, the relation is symmetric.
In a matrix representation, we can see that the matrix is symmetric using the diagonal as the axis of symmetry.
Transitive
A relation on a set is transitive if for all , if and then .
This can be seen in a graph as a direct edge between any two nodes that are connected by a path.
For example, the relation is transitive.
In a matrix representation, we can see that if there is a 1 in the row of a node, then there is a 1 in the column of the node that is connected to it.
Equivalence class
An equivalence class is a set of elements that are related to each other by an equivalence relation.
For example
Congruence mod m relation
A congruence mod m relation is an equivalence relation on the set of integers.
For example:
where,
Why?
Because the congruence mod m relation is reflexive, symmetric and transitive.
Reflexive demonstration:
if
then,
so it's reflexive.
Symmetric demonstration:
if
then,
so it's symmetric.
Transitive demonstration:
if
and
then,
so it's transitive.
Partial order relation
A partial order relation is a relation that is reflexive, antisymmetric and transitive.
Antisymmetric
A relation on a set is antisymmetric if for all , if and then .
This means that in a graph, there are no bidirectional edges.
This also means that in a matrix, there is at least one entry wherein the symmetric entry is not equal.
There are two reasonings we can use here:
- An edge points to and from the same node: self-loop and entry on the diagonal.
- Any edge exists: There is no bidirectional edge and the corresponding symmetric entry is the inverse.