get_no_of_children {CIMICE} | R 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)

[Package CIMICE version 1.2.1 Index]