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 db6be77 D--- 10 27 -- Barabasi graph
#> + attr: name (g/c), power (g/n), m (g/n), zero.appeal (g/n), algorithm
#> | (g/c)
#> + edges from db6be77:
#>  [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 7aa1a57 D--- 10 13 -- Barabasi graph
#> + attr: name (g/c), power (g/n), m (g/n), zero.appeal (g/n), algorithm
#> | (g/c)
#> + edges from 7aa1a57:
#>  [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