with_edge_: Constructor modifier to add edge attributes

View source: R/make.R

with_edge_R Documentation

Constructor modifier to add edge attributes

Description

Constructor modifier to add edge attributes

Usage

with_edge_(...)

Arguments

...

The attributes to add. They must be named.

See Also

Constructor modifiers (and related functions) make_(), sample_(), simplified(), with_graph_(), with_vertex_(), without_attr(), without_loops(), without_multiples()

Examples

make_(
  ring(10),
  with_edge_(
    color = "red",
    weight = rep(1:2, 5)
  )
) %>%
  plot()

igraph documentation built on Oct. 20, 2024, 1:06 a.m.