Skip to contents

Constructor modifier to drop multiple and loop edges

Usage

simplified()

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