get_no_of_children: Get number of children

get_no_of_childrenR Documentation

Get number of children

Description

Compute number of children for each node given an adj matrix

Usage

get_no_of_children(A, g)

Arguments

A

Adjacency matrix of the graph g

g

a graph

Value

a vector containing the number of children for each node in g

Examples

require(dplyr)
require(igraph)
preproc <- example_dataset() %>% dataset_preprocessing
samples <- preproc[["samples"]]
freqs   <- preproc[["freqs"]]
labels  <- preproc[["labels"]]
genes   <- preproc[["genes"]]
g <- graph_non_transitive_subset_topology(samples, labels)
A <- as_adj(g)
get_no_of_children(A, g)


redsnic/CIMICE documentation built on March 30, 2022, 2:46 a.m.