build_subset_graph {CIMICE} | R Documentation

## Remove transitive edges and prepare graph

### Description

Create a graph from the "build_topology_subset" edge list, so that it respects the subset relation, omitting the transitive edges.

### Usage

    build_subset_graph(edges, labels)

### Arguments

`edges` | edge list, built from "build_topology_subset"
`labels` | list of node labels, to be paired with the graph

### Value

a graph with the subset topology, omitting transitive edges

### Examples

    require(dplyr)
    preproc <- example_dataset() %>% dataset_preprocessing
    samples <- preproc[["samples"]]
    freqs   <- preproc[["freqs"]]
    labels  <- preproc[["labels"]]
    genes   <- preproc[["genes"]]
    edges <- build_topology_subset(samples)
    g <- build_subset_graph(edges, labels)

[Package CIMICE version 1.2.1 Index]