## S3 method for class 'igraph':
[[(x, i, j, from, to, ..., directed = TRUE, edges = FALSE,
exact = TRUE)
to
argument, it can be used to
query/set a sequence of edges. See details below. This argument cannot
be present together with any of the i
and j
from
argument, it can be used to
query/set a sequence of edges. See details below. This argument cannot
be present together with any of the i
and j
edges
argument is set toTRUE
:graph[[1:3, , edges=TRUE]]
graph[[, 1:3, edges=TRUE]]The alternative argument names from
and to
can be used
instead of the usual i
and j
, to make the code more
readable: graph[[from = 1:3]]
graph[[from = v, to = w, edges = TRUE]]
[[
Vertex names are also supported, so instead of a numeric vertex id a
vertex can also be given to [
[[
[.igraph
;
adjacent_vertices
;
are.connected
, are_adjacent
;
ecount
, gsize
;
ends
, get.edge
,
get.edges
; get.edge.ids
;
gorder
, vcount
;
head_of
; incident_edges
;
incident
; is.directed
,
is_directed
; neighbors
;
tail_of