v2l: Convert adjacency matrix to a list of edges

Description Usage Arguments Value Author(s)

View source: R/v2l.R

Description

This function converts adjacency matrix A to a sorted list of edges, e.g. a list in which edges are sorted by decreasing confidence.

Usage

1
v2l(A, max = 1e+05, check.names = TRUE)

Arguments

A

Input adjacency matrix.

max

Maximal length of the resulting list. This number may be lower than the number of all the edges from adjacency matrix. Then only top max edges will be returned.

check.names

Checks name of the gene ids

Value

A data frame of sorted edges: (1) list of sources (2) list of destinations (3) list of confidences. Elements in all the lists correspond to each other.

Author(s)

Raghvendra Mall <rmall@hbku.edu.qa>


RGBM documentation built on May 1, 2019, 7:59 p.m.

Related to v2l in RGBM...