How can we make a relation reflexive?
Mathematical Definition
R is reflexive if ∀ ai∈A,(ai,ai)∈R.
Matrix Representation
We know that the diagonal filled with 1s represents the reflexive closure of a relation.
Hence, the shortest way to make a relation reflexive is to fill the matrix diagonal with 1s.
For example, here is how we can make some relation reflexive in matrix form:
100000000000000010000000⋅0000000⋅0000000⋅00000001∼100000001000000010000000⋅0000000⋅0000000⋅00000001
Graph Representation
In the graph representation, we add a self-loop to each node.
For example, here is how we can make some relation reflexive in graph form:
Once we add the self-loops, the graph will look like this: