6.9. igraph_es_pairs_small — Edge selector, multiple edges defined by their endpoints as arguments

int igraph_es_pairs_small(igraph_es_t *es, igraph_bool_t directed, ...);

The edges between the given pairs of vertices will be included in the edge selection. The vertex pairs must be given as the arguments of the function call, the third argument is the first vertex of the first edge, the fourth argument is the second vertex of the first edge, the fifth is the first vertex of the second edge and so on. The last element of the argument list must be -1 to denote the end of the argument list.

Arguments: 

es:

Pointer to an uninitialized edge selector object.

directed:

Whether the graph is directed or not.

Returns: 

Error code.

See also: 

igraph_es_pairs()

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