Remove duplicate edges from an edge sequence

# S3 method for class 'igraph.es'
unique(x, incomparables = FALSE, ...)

Arguments

x

An edge sequence.

incomparables

a vector of values that cannot be compared. Passed to base function duplicated. See details there.

...

Passed to base function duplicated().

Value

An edge sequence with the duplicate vertices removed.

Examples

g <- make_(ring(10), with_vertex_(name = LETTERS[1:10]))
E(g)[1, 1:5, 1:10, 5:10]
#> + 22/10 edges from 9eb5b15 (vertex names):
#>  [1] A--B A--B B--C C--D D--E E--F A--B B--C C--D D--E E--F F--G G--H H--I I--J
#> [16] A--J E--F F--G G--H H--I I--J A--J
E(g)[1, 1:5, 1:10, 5:10] %>% unique()
#> + 10/10 edges from 9eb5b15 (vertex names):
#>  [1] A--B B--C C--D D--E E--F F--G G--H H--I I--J A--J