Learn R Programming

mully (version 2.1.38)

getEdgeAttributes: Get the attributes of the edges connecting two nodes

Description

Get the attributes of the edges connecting two nodes

Usage

getEdgeAttributes(g, nodeStart, nodeDest)

Value

A dataframe containing the edges with their attributes. If both nodes' arguments are missing, it returns all the edges with their attributes.

Arguments

g

The input graph

nodeStart

The first endpoint of the edge

nodeDest

The second endpoint of the edge

Examples

Run this code
g=mully::demo()
#Print all Edges
getEdgeAttributes(g)
#Get a Single Edge
getEdgeAttributes(g,"d2","g1")

Run the code above in your browser using DataLab