adj2el {ghypernet}R Documentation

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

data(contacts.adj)
el <- adj2el(contacts.adj)


[Package ghypernet version 1.1.0 Index]