Plotting Sparse MatricesA convenient way to plot sparse matrices is with the function MatrixPlot. It is defined in the package LinearAlgebra`MatrixManipulation` and described in greater detail in the section Plotting Matrices. Note that in order to use the function, the package must first be loaded. In[1]:=  |
This reads in a sparse matrix, using the Import function demonstrated in the previous section. In[2]:=  |
Out[2]=
|
The matrix can be plotted. This is a useful way to see the structure of the matrix. In[3]:=  |
If the matrix is multiplied with itself the result is less sparse, but it still has a related structure. In[4]:=  |
|