E(graph, P = NULL, path = NULL, directed = TRUE)
P
argument, for directed graphs.[.igraph.es
for details.$.igraph.es
for details.An edge sequence is tied to the graph it refers to: it really denoted the specific edges of that graph, and cannot be used together with another graph.
An edge sequence is most often created by the E()
function. The
result includes edges in increasing edge id order by default (if. none
of the P
and path
arguments are used). An edge
sequence can be indexed by a numeric vector, just like a regular R
vector. See links to other edge sequence operations below.
$.igraph.es
,
$<-.igraph.es
, E<-
,
[<-.igraph.es
,
[[<-.igraph.es
,
igraph-es-attributes
,
igraph-es-attributes
,
igraph-es-attributes
,
igraph-es-attributes
,
igraph-es-attributes
;
$.igraph.vs
, $<-.igraph.vs
,
V<-
, [<-.igraph.vs
,
[[<-.igraph.vs
,
igraph-vs-attributes
,
igraph-vs-attributes
,
igraph-vs-attributes
,
igraph-vs-attributes
,
igraph-vs-attributes
; V
;
[.igraph.es
, %--%
,
%->%
, %<-%
,
igraph-es-indexing
;
[.igraph.vs
,
igraph-vs-indexing
;
[[.igraph.es
,
igraph-es-indexing2
;
[[.igraph.vs
,
igraph-vs-indexing2
;
print.igraph.es
;
print.igraph.vs
# Edges of an unnamed graph
g <- make_ring(10)
E(g)
# Edges of a named graph
g2 <- make_ring(10) %>%
set_vertex_attr("name", value = letters[1:10])
E(g2)
Run the code above in your browser using DataLab