Skip to contents

Constructor modifier to drop multiple edges

Usage

without_multiples()

See also

Other constructor modifiers: simplified(), with_edge_(), with_graph_(), with_vertex_(), without_attr(), without_loops()

Examples

sample_(pa(10, m = 3, algorithm = "bag"))
#> IGRAPH fcb917f D--- 10 27 -- Barabasi graph
#> + attr: name (g/c), power (g/n), m (g/n), zero.appeal (g/n), algorithm
#> | (g/c)
#> + edges from fcb917f:
#>  [1]  2->1  2->1  2->1  3->2  3->1  3->2  4->3  4->1  4->1  5->1  5->1  5->1
#> [13]  6->1  6->1  6->1  7->1  7->1  7->2  8->1  8->5  8->1  9->7  9->1  9->1
#> [25] 10->1 10->5 10->9
sample_(pa(10, m = 3, algorithm = "bag"), without_multiples())
#> IGRAPH d72ff48 D--- 10 16 -- Barabasi graph
#> + attr: name (g/c), power (g/n), m (g/n), zero.appeal (g/n), algorithm
#> | (g/c)
#> + edges from d72ff48:
#>  [1]  2->1  3->1  3->2  4->1  5->1  6->1  6->4  7->1  7->5  8->1  8->4  9->1
#> [13]  9->2  9->4 10->1 10->5