v2l: Convert adjacency matrix to a list of edges

View source: R/v2l.R

v2lR Documentation

Convert adjacency matrix to a list of edges

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

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 April 14, 2023, 9:10 a.m.

Related to v2l in RGBM...