removeLayer: Delete a layer or a set of layers from a graph

Description Usage Arguments Value Examples

View source: R/mully_layer.R

Description

Delete a layer or a set of layers from a graph

Usage

1
removeLayer(g, name, trans = FALSE)

Arguments

g

The input graph.

name

The name or the list of the names of the layers to be deleted.

trans

A boolean whether to insert transitive edges or not

Value

The graph, with the given layer and its corresponding nodes and edges removed.

Examples

1
2
g = mully::demo()
removeLayer(g,"gene",trans=TRUE)

mully documentation built on Oct. 14, 2021, 5:06 p.m.