Examples for 'igraph::simplified'


Constructor modifier to drop multiple and loop edges

Aliases: simplified

Keywords:

### ** Examples

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

[Package igraph version 1.3.1 Index]