Skip to contents

Keeps only vertices in v and removes all others.

Usage

igraph_filter_vertex(ig, v)

Arguments

ig

An igraph object.

v

Vertex indices, names, or a logical vector (passed to igraph::V).

Value

Subsetted igraph object.