Learn R Programming

SeqNet (version 1.1.3)

edges_from_adjacency_cpp: C++ implementation for obtaining an edge list from adjacency matrix

Description

C++ implementation for obtaining an edge list from adjacency matrix

Usage

edges_from_adjacency_cpp(adj)

Arguments

adj

An adjacency matrix.

Value

Returns a matrix with 2 columns containing the indicies in the lower-triangle of the matrix that are nonzero.