6.8. igraph_es_pairs — Edge selector, multiple edges defined by their endpoints in a vector

int igraph_es_pairs(igraph_es_t *es, const igraph_vector_t *v, 
		    igraph_bool_t directed);

The edges between the given pairs of vertices will be included in the edge selection. The vertex pairs must be defined in the vector v , the first element of the vector is the first vertex of the first edge to be selected, the second element is the second vertex of the first edge, the third element is the first vertex of the second edge and so on.

Arguments: 

es:

Pointer to an uninitialized edge selector object.

v:

The vector containing the endpoints of the edges.

directed:

Whether the graph is directed or not.

Returns: 

Error code.

See also: 

igraph_es_pairs_small()

Time complexity: O(n), the number of edges being selected.