I know that a graph can be represented by its adjacency matrix. Graph union and graph intersection are two important basic operations in graph theory. Working with graphs and their operations is good to visualise certain relations or social networking etc., but when it comes to computational (programming) part, it becomes difficult to feed the graphs directly into our systems (computers). Hence it often requires to be converted into corresponding matrix form. Suppose, in case i am coverting the matrices into corresponding adjacency matrices,
What are possible analogous matrix operations of graph union and graph intersection operations?
Note that the graph i am talking about is simple and undirected
These are not very natural operations from the point of view of linear algebra, but we can define them on matrices (and compute them in MATLAB or whatever).
For example, if I have the graphs
then their adjacency matrices are, respectively, $$ A = \begin{bmatrix} 0 & 1 & 1 \\ 1 & 0 & 0 \\ 1 & 0 & 0\end{bmatrix} \qquad B = \begin{bmatrix} 0 & 0 & 1 \\ 0 & 0 & 1 \\ 1 & 1 & 0\end{bmatrix}. $$ The min and the max will be $$ \min(A,B) = \begin{bmatrix}0 & 0 & 1 \\ 0 & 0 & 0 \\ 1 & 0 & 0\end{bmatrix} \qquad \max(A,B) = \begin{bmatrix} 0 & 1 & 1 \\ 1 & 0 & 1 \\ 1 & 1 & 0 \end{bmatrix} $$ and these are the intersection and the union of the two graphs.