m2graph | R Documentation |
This function derives a graph object corresponding to an adjacency matrix
m2graph(adj, nodes = NULL)
adj |
square adjacency matrix with elements in |
nodes |
(optional) labels of the nodes, |
object of class graphNEL
(package ‘graph’); if element adj[i,j]
equals 1
, then there is a directed edge from node i
to node j
in the graph, and no edge otherwise
m2graph(Asiamat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.