Constructor modifier to drop multiple and loop edges
See also
Constructor modifiers (and related functions)
make_()
,
sample_()
,
with_edge_()
,
with_graph_()
,
with_vertex_()
,
without_attr()
,
without_loops()
,
without_multiples()
Examples
sample_(pa(10, m = 3, algorithm = "bag"))
#> IGRAPH 0b917fa D--- 10 27 -- Barabasi graph
#> + attr: name (g/c), power (g/n), m (g/n), zero.appeal (g/n), algorithm
#> | (g/c)
#> + edges from 0b917fa:
#> [1] 2->1 2->1 2->1 3->1 3->1 3->2 4->1 4->1 4->1 5->1 5->1 5->1
#> [13] 6->1 6->1 6->2 7->1 7->1 7->1 8->2 8->1 8->1 9->1 9->6 9->2
#> [25] 10->2 10->8 10->1
sample_(pa(10, m = 3, algorithm = "bag"), simplified())
#> IGRAPH 1dd15b0 D--- 10 13 -- Barabasi graph
#> + attr: name (g/c), power (g/n), m (g/n), zero.appeal (g/n), algorithm
#> | (g/c)
#> + edges from 1dd15b0:
#> [1] 2->1 3->1 3->2 4->1 4->2 5->1 5->4 6->1 7->1 8->1 8->2 9->1
#> [13] 10->1