edgeData-methods

Get and set attributes for the edges of a graph object

Attributes of the edges of a graph can be accessed using edgeData. The attributes must be defined using edgeDataDefaults. You can ommit the from or to argument to retrieve attribute values for all edges to (respectively, from) a given node.

Keywords
methods
Usage
edgeData(self, from, to, attr) edgeData(self, from, to, attr) <- value
Arguments
self
A graph-class instance
from
A character vector of node names
to
A character vector of node names
attr
A character vector of length one specifying the name of a node attribute
value
An R object to store as the attribute value
Aliases
  • edgeData-methods
  • edgeData<--methods
  • edgeData
  • edgeData<-
Documentation reproduced from package graph, version 1.50.0, License: Artistic-2.0

Community examples

Looks like there are no examples yet.