addEdge: Add an edge

View source: R/mully_edge.R

addEdgeR Documentation

Add an edge

Description

Add an edge

Usage

addEdge(g, nodeStart, nodeDest, attributes)

Arguments

g

The input graph

nodeStart

The first endpoint of the edge

nodeDest

The second endpoint of the edge

attributes

The attributes to assign to the edge

Value

The mully graph, with the added edge

Examples

g=mully::demo()
addEdge(g,"dr3","g2",attributes=list(name="newEdge"))

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