powered by
Maps adjacency matrix to edgelist
adj2el(adj, directed = TRUE)
a dataframe containing the edgelist
matrix, the adjacency matrix
boolean, is the graph directed?
data(contacts.adj) el <- adj2el(contacts.adj)
Run the code above in your browser using DataLab