Learn R Programming

SeqNet (version 1.1.3)

components_in_adjacency: C++ implementation to obtain connected components in a graph.

Description

C++ implementation to obtain connected components in a graph.

Usage

components_in_adjacency(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.