Symmetric Matrices 

Undirected graphs must have symmetric adjacency matrices.

In[1]:=
Click for copyable input
X
In[2]:=
Click for copyable input
X
Out[2]=

Verify the symmetry.

In[3]:=
Click for copyable input
X
Out[3]=

Directed graphs typically have non-symmetric adjacency matrices.

In[4]:=
Click for copyable input
X
In[5]:=
Click for copyable input
X
Out[5]=

In the above examples, the complete graph has a symmetric adjacency matrix, but all the other graphs have a non-symmetric adjacency matrix.

In[6]:=
Click for copyable input
X
Out[6]=

Visualize the adjacency matrices for both directed and undirected graphs.

In[7]:=
Click for copyable input
X
Out[7]=
de es ja pt-br zh