Skip to contents

Constructor modifier to add graph attributes

Usage

with_graph_(...)

Arguments

...

The attributes to add. They must be named.

See also

Examples

make_(ring(10), with_graph_(name = "10-ring"))
#> ── <igraph> 10-ring ───────────────────────────────────────────────── 89404d5 ──
#>  undirected
#>  10 vertices · 10 edges
#> 
#> ── Attributes ──────────────────────────────────────────────────────────────────
#> → graph:  name <chr>, mutual <lgl>, circular <lgl>
#> 
#> ── Edges ───────────────────────────────────────────────────────────────────────
#>  [1] 1 ─ 2   2 ─ 3   3 ─ 4   4 ─ 5   5 ─ 6   6 ─ 7   7 ─ 8   8 ─ 9   9 ─ 10 
#> [10] 1 ─ 10