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_vertices(), complementer(), compose(), connect(), contract(), delete_edges(), delete_vertices(), difference.igraph(), difference(), disjoint_union(), edge(), intersection.igraph(), intersection(), path(), permute(), rep.igraph(), reverse_edges(), simplify(), union.igraph(), union(), vertex()


[Package igraph version 1.5.1 Index]