A cograph_network with the new edges, or the input format
when keep_format = TRUE. An edge that already exists has its weight
replaced, and a cograph_edges_replaced warning says how many.
Arguments
x
Network input.
from
Source nodes, by label or index.
to
Target nodes, by label or index. The same length as from.
weight
Numeric weight for the new edges, length 1 or
length(from). Default 1.
...
Named vectors of extra edge attributes, length 1 or
length(from).