Learn R Programming

mully (version 2.1.38)

removeEdge: Delete an edge

Description

Delete an edge

Usage

removeEdge(g, nodeStart, nodeDest, attributes = NA, multi = FALSE)

Value

The mully graph with the deleted edges

Arguments

g

The input graph

nodeStart

The first endpoint of the edge

nodeDest

The second endpoint of the edge

attributes

The attributes of the edge to delete. Required if the nodes are multi-connected

multi

A boolean. Specifies whether to delete multiple edges or not, in case they exist.

Examples

Run this code
g=mully::demo()
removeEdge(g,"dr1","d2",multi=TRUE)

Run the code above in your browser using DataLab