get_no_of_children {CIMICE} | R Documentation |
Compute number of children for each node given an adj matrix
get_no_of_children(A, g)
A |
Adjacency matrix of the graph g |
g |
a graph |
a vector containing the number of children for each node in g
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)