ghypernet (version 1.0.0)

adj2el: Maps adjacency matrix to edgelist

Description

Maps adjacency matrix to edgelist

Usage

adj2el(adj, directed = TRUE)

Arguments

adj

matrix, the adjacency matrix

directed

boolean, is the graph directed?

Value

a dataframe containing the edgelist

Examples

Run this code
# NOT RUN {
data(contacts.adj)
el <- adj2el(contacts.adj)

# }

Run the code above in your browser using DataLab