Learn R Programming

mully (version 2.1.38)

removeNode: Delete a node or a set of nodes from a graph

Description

Delete a node or a set of nodes from a graph

Usage

removeNode(g, name, trans = FALSE)

Value

The mully graph, with the nodes deleted.

Arguments

g

The input graph.

name

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

trans

A boolean whether to insert transitive edges or not

Examples

Run this code
g=mully::demo()
removeNode(g,"dr1",trans=TRUE)

Run the code above in your browser using DataLab