| igraph Reference Manual |
|---|
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:
Time complexity: O(n), the number of edges being selected.
<< 6.7. igraph_es_seq — Edge selector, a sequence of edge ids. |
6.9. igraph_es_pairs_small — Edge selector, multiple edges defined by their endpoints as arguments >> |