with_vertex_: Constructor modifier to add vertex attributes

View source: R/make.R

with_vertex_R Documentation

Constructor modifier to add vertex attributes

Description

Constructor modifier to add vertex attributes

Usage

with_vertex_(...)

Arguments

...

The attributes to add. They must be named.

See Also

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

Examples

make_(
  ring(10),
  with_vertex_(
    color = "#7fcdbb",
    frame.color = "#7fcdbb",
    name = LETTERS[1:10]
  )
) %>%
  plot()

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