add.edges.networkLite {networkLite} | R Documentation |
Methods to Add or Modify Edges in a networkLite
.
Description
Methods to Add or Modify Edges in a networkLite
.
Usage
## S3 method for class 'networkLite'
add.edges(x, tail, head, names.eval = NULL, vals.eval = NULL, ...)
## S3 replacement method for class 'networkLite'
x[i, j, names.eval = NULL, add.edges = FALSE] <- value
Arguments
x |
A |
tail |
Vector of tails of edges to add to the |
head |
Vector of heads of edges to add to the |
names.eval |
Names of edge attributes, or |
vals.eval |
Value(s) of edge attributes, or |
... |
additional arguments |
i , j |
Nodal indices (must be missing for |
add.edges |
logical; should edges being assigned to be added if they are not already present? |
value |
Edge values to assign (coerced to a matrix). |
Value
A networkLite
object with edges added (if calling
add.edges
) or set to specified values (if calling
[<-.networkLite
).