unique.igraph.es | R Documentation |
Remove duplicate edges from an edge sequence
## S3 method for class 'igraph.es'
unique(x, incomparables = FALSE, ...)
x |
An edge sequence. |
incomparables |
a vector of values that cannot be compared.
Passed to base function |
... |
Passed to base function |
An edge sequence with the duplicate vertices removed.
Other vertex and edge sequence operations:
c.igraph.es()
,
c.igraph.vs()
,
difference.igraph.es()
,
difference.igraph.vs()
,
igraph-es-indexing
,
igraph-es-indexing2
,
igraph-vs-indexing
,
igraph-vs-indexing2
,
intersection.igraph.es()
,
intersection.igraph.vs()
,
rev.igraph.es()
,
rev.igraph.vs()
,
union.igraph.es()
,
union.igraph.vs()
,
unique.igraph.vs()
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()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.