addEdge: Add an edge

Description Usage Arguments Value Examples

View source: R/mully_edge.R

Description

Add an edge

Usage

1
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 graph, with the added edge

Examples

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

mully documentation built on Oct. 14, 2021, 5:06 p.m.