Learn R Programming

mully (version 2.1.38)

addEdge: Add an edge

Description

Add an edge

Usage

addEdge(g, nodeStart, nodeDest, attributes)

Value

The mully graph, with the added edge

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

Examples

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

Run the code above in your browser using DataLab