powered by
Adds the edges of the kids of a node to the edge list.
addE(df, from, to)
A Data frame for edges.
Data frame for edges.
Integer (numerical identifier of vertex).
Vector of integers (numerical identifiers of kids of vertex).
Other Data frames for igraph: addV(), newE(), newV()
addV()
newE()
newV()
df<-addE(newE(), 1, c(2, 3, 4)) print(df)
Run the code above in your browser using DataLab