Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

unique.igraph.es

Remove duplicate edges from an edge sequence


Description

Remove duplicate edges from an edge sequence

Usage

## 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.

See Also

Examples

g <- make_(ring(10), with_vertex_(name = LETTERS[1:10]))
E(g)[1, 1:5, 1:10, 5:10]
E(g)[1, 1:5, 1:10, 5:10] %>% unique()

igraph

Network Analysis and Visualization

v1.2.10
GPL (>= 2)
Authors
See AUTHORS file.
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.