## S3 method for class 'igraph':
-(e1, e2)
-
difference
.e2
is a vertex sequence (e.g. created by theV
function), then these vertices will be deleted from
the graph.E
function), then these edges will be deleted from the graph.vertex
(or thevertices
) function, then all arguments ofvertices
are
concatenated and the result is interpreted as a vector of vertex
ids. These vertices will be removed from the graph.edge
(or theedges
) function, then all arguments ofedges
are
concatenated and then interpreted as edges to be removed from the
graph.
Example:g <- make_ring(10)
V(g)$name <- letters[1:10]
E(g)$name <- LETTERS[1:10]
g <- g - edge("e|f")
g <- g - edge("H")path
function,
then allpath
arguments are concatenated and then interpreted
as a path along which edges will be removed from the graph.
Example:g <- make_ring(10)
V(g)$name <- letters[1:10]
g <- g - path("a", "b", "c", "d")+.igraph
;
add.edges
, add_edges
;
add.vertices
, add_vertices
;
delete.edges
, delete_edges
;
delete.vertices
,
delete_vertices
; edge
,
edges
; path
;
vertex
, vertices