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

View source: R/mully_layer.R

removeLayerR Documentation

Delete a layer or a set of layers from a graph

Description

Delete a layer or a set of layers from a graph

Usage

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 mully graph, with the given layer and its corresponding nodes and edges removed.

Examples

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

mully documentation built on March 7, 2023, 8:10 p.m.