Constructor modifier to add graph attributes
See also
Constructor modifiers (and related functions):
make_(),
sample_(),
simplified(),
with_edge_(),
with_vertex_(),
without_attr(),
without_loops(),
without_multiples()
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
