3.1. igraph_vs_destroy — Destroy a vertex set.

void igraph_vs_destroy(igraph_vs_t *vs);

This function should be called for all vertex selectors when they are not needed. The memory allocated for the vertex selector will be deallocated. Do not call this function on vertex selectors created with the immediate versions of the vertex selector constructors (starting with igraph_vss ).

Arguments: 

vs:

Pointer to a vertex selector object.

Time complecity: operating system dependent, usually O(1).