| igraph Reference Manual |
|---|
int igraph_strvector_resize(igraph_strvector_t* v, long int newsize);
If the new size is bigger then empty strings are added, if it is smaller then the unneeded elements are removed.
Arguments:
v: |
The string vector. |
newsize: |
The new size. |
Returns:
|
Error code. |
Time complexity: O(n), the number of strings if the vector is made bigger, O(l), the total length of the deleted strings if it is made smaller, maybe less, depending on memory management.
<< 8.10. igraph_strvector_clear — Remove all elements |
8.12. igraph_strvector_size — Gives the size of a string vector. >> |