igraph-minus {igraph}R Documentation

Delete vertices or edges from a graph

Description

Delete vertices or edges from a graph

Usage

## S3 method for class 'igraph'
e1 - e2

Arguments

e1

Left argument, see details below.

e2

Right argument, see details below.

Details

The minus operator (‘-’) can be used to remove vertices or edges from the graph. The operation performed is selected based on the type of the right hand side argument:

Value

An igraph graph.

See Also

Other functions for manipulating graph structure: +.igraph; add.edges, add_edges; add.vertices, add_vertices; delete.edges, delete_edges; delete.vertices, delete_vertices; edge, edges; path; vertex, vertices


[Package igraph version 1.0.1 Index]