A node_vec is a vector of graph nodes with associated edges stored as
attributes.
Arguments
- x
A vector representing the nodes in the graph.
- from
Integer vector of 'from' node positions into
x. Hyperedges (multiple 'from' nodes per edge) are not yet supported.- to
Integer vector of 'to' node positions into
x.- ...
Named edge attribute vectors (e.g.
weight = c(1, 2, 5)), recycled to the number of edges.fromandtoare reserved and cannot be used as attribute names. Attribute columns are stored on the edge table itself, so they slice, replicate, and reorient with the edges they belong to (seenodes()/edges()).- directed
A single logical value: is incidence ordered (
from->to) or symmetric?