adj2el.Rd
Maps adjacency matrix to edgelist
adj2el(adj, directed = TRUE)
adj | matrix, the adjacency matrix |
---|---|
directed | boolean, is the graph directed? |
a dataframe containing the edgelist
#> Warning: data set ‘contacts.adj’ not foundel <- adj2el(contacts.adj)