# FreeBSD Manual Pages

MM2GV(1) General Commands Manual MM2GV(1) delim $$NAMEmm2gv - Matrix Market-DOT convertersSYNOPSISmm2gv[-cluv?] [-Ui] [-ooutfile] [file]DESCRIPTIONmm2gvconverts a sparse matrix of the Matrix Market format to a graph in the GV (formerly DOT) format. If the matrixMis 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 speci- fying the two sets of vertices. Equivalently, the matrix is converted into a symmetric square matrix 0M$MsupT$ 0 a block matrix with square blocks of 0's in the upper left and lower right, the upper right block beingMand the lower left block being the transpose ofM. This matrix is then viewed as the adjacency matrix of the graph. For a square matrix,mm2gvuses 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-Uflag.OPTIONSThe following options are supported:-cThis flag causesmm2gvto assign colors to the edges. The matrix element is scaled to the range [0,1] depending on where it lies between the minimum and maximum set matrix values. This scaled value is used as the"wt"attribute of the corresponding edge. In addition, this scalar value is mapped to an RGB value, which is stored as the edge"color".-lIf set,mm2gvattaches a label to the graph indicating the base name of the input file, and the number of nodes and edges.-uIf specified, the graph is assumed to be undirected. By default, the graph generated is directed.-vThis flag causesmm2gvto store the matrix values as the"len"attribute of the corresponding edge.-UbflagSpecifies how square matrices are handled. Ifbflagis 0, a square matrix will always be treated as an adjacency matrix. Ifbflagis 1 (the default), a square matrix with a symmetric pat- tern of non-zero entries will be used as an adjacency matrix; otherwise, it will be used a bipartite graph. Ifbflagis 2, a symmetric matrix will be used as an adjacency matrix; otherwise, it will be used a bipartite graph. Ifbflagis 3, any input ma- trix will be treated like a bipartite graph.-ooutfilePrints output to the fileoutfile. If not given,mm2gvuses std- out.OPERANDSThe following operand is supported:fileName of the file in MatrixMarket format. If nofileoperand is specified, the standard input will be used.RETURN CODESReturn0if there were no problems during conversion; and non-zero if any error occurred.AUTHORSYifan Hu <yifanhu@yahoo.com> Emden R. Gansner <erg@graphviz.com>ADDITIONAL INFOSee http://math.nist.gov/MatrixMarket/ for description of the format and http://www.cise.ufl.edu/research/sparse/matrices/ for a large col- lection of sparse matrices in this format. 31 July 2008 MM2GV(1)

NAME | SYNOPSIS | DESCRIPTION | OPTIONS | RETURN CODES | AUTHORS | ADDITIONAL INFO

Want to link to this manual page? Use this URL:

<https://www.freebsd.org/cgi/man.cgi?query=mm2gv&sektion=1&manpath=FreeBSD+12.1-RELEASE+and+Ports>