MM2GV(1) | General Commands Manual | MM2GV(1) |
mm2gv - Matrix Market-DOT converters
mm2gv [ -cluv? ] [ -Ui ] [ -ooutfile ] [ file ]
mm2gv converts a sparse matrix of the Matrix Market format to a graph in the GV (formerly DOT) format. If the matrix M is not square, the graph is considered bipartite and the matrix is viewed as a bipartite graph adjacency matrix, with the rows and columns of the matrix specifying the two sets of vertices. Equivalently, the matrix is converted into a symmetric square matrix
0 | M |
$M sup T$ | 0 |
a block matrix with square blocks of 0's in the upper left and lower right, the upper right block being M and the lower left block being the transpose of M. This matrix is then viewed as the adjacency matrix of the graph.
For a square matrix, mm2gv uses it directly as an adjacency matrix if its pattern of non-zero entries is symmetric; otherwise, it will treat it as a bipartite graph as with the case of non-square matrices. This behavior can be modified by the -U flag.
The following options are supported:
The following operand is supported:
Return 0 if there were no problems during conversion; and non-zero if any error occurred.
Yifan Hu <yifanhu@yahoo.com>
Emden R. Gansner <erg@graphviz.com>
See http://math.nist.gov/MatrixMarket/ for description of the format and http://www.cise.ufl.edu/research/sparse/matrices/ for a large collection of sparse matrices in this format.
31 July 2008 |