Skip to contents

Constructor modifier to drop multiple and loop edges

Usage

simplified()

See also

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

Examples

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