A function to turn an adjacency matrix for a graph into a graphNEL object.
函数打开一个图形成graphNEL对象的邻接矩阵。
用法----------Usage----------
mat2UndirG(V, mat)
参数----------Arguments----------
参数:V
A vector of node names
节点名称的向量
参数:mat
A square symmetric matrix indicating the presence of edges
正方形的对称矩阵,表示存在边
Details
详情----------Details----------
mat is a square matrix with rows and columns corresponding to nodes in the graph. Entries of "0" indicate the lack of an edge. Since this is making an undirected graph, mat must be symmetric.
mat是一个方阵图中的节点对应的行和列。 “0”的条目表明缺乏的边缘。由于这是一个无向图,mat必须是对称的。