Learn R Programming

mully (version 2.1.38)

removeLayer: 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)

Value

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

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

Examples

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

Run the code above in your browser using DataLab