8.4. STR — Indexing string vectors

#define STR(sv,i)

This is a macro which allows to query the elements of a string vector in simpler way than igraph_strvector_get(). Note this macro cannot be used to set an element, for that use igraph_strvector_set().

Arguments: 

sv:

The string vector

i:

The the index of the element.

Returns: 

The element at position i.

Time complexity: O(1).