Definition. The relation associated to a matrix [00IZ]

Let M be an {\mathopen {}\left (n\times n\right )\mathclose {}}-matrix over a semiring S. We define the relation associated to M below:

\begin {aligned} \operatorname {\underline {rel}}_S{M} &\colon {\mathopen {}\left [m\right ]\mathclose {}}\mathbin {\nrightarrow }{\mathopen {}\left [n\right ]\mathclose {}} \\ i\mathrel {{\mathopen {}\left (\operatorname {\underline {rel}}_S{M}\right )\mathclose {}}} j &\Longleftrightarrow M_{i,j} = 1 \end {aligned}

We have defined a function \operatorname {\underline {rel}}_S\colon \mathrm {Mat}_{S}{\mathopen {}\left (m,n\right )\mathclose {}}\to \mathrm {Rel}{\mathopen {}\left ({\mathopen {}\left [m\right ]\mathclose {}},{\mathopen {}\left [n\right ]\mathclose {}}\right )\mathclose {}}.