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

View source: R/mully_node.R

removeNodeR Documentation

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)

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

Value

The mully graph, with the nodes deleted.

Examples

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

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