# Igraph\_es\_t to igraph\_vector\_t/igraph\_integer\_t

**URL:** <https://igraph.discourse.group/t/igraph-es-t-to-igraph-vector-t-igraph-integer-t/218>\
**Category:** Usage\
**Tags:** C\
**Created:** [10 May 2020 12:07 UTC](https://igraph.discourse.group/t/igraph-es-t-to-igraph-vector-t-igraph-integer-t/218 "2020-05-10T12:07:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yas](https://avatars.discourse-cdn.com/v4/letter/y/b5ac83/32.png) [@Yas](https://igraph.discourse.group/u/Yas)\
**Post date:** [10 May 2020 12:07 UTC](https://igraph.discourse.group/t/igraph-es-t-to-igraph-vector-t-igraph-integer-t/218/1 "2020-05-10T12:07:55Z")

</div>

Hello, is there an igraph function in C that translates an igraph\_es\_t type to igraph\_integer\_t or igraph\_vector\_t type? I have looked through the documentation but have not a function like that.

---

<div class="post-metadata">

**Author:** ![vtraag](https://yyz2.discourse-cdn.com/free1/user_avatar/igraph.discourse.group/vtraag/32/38_2.png) [@vtraag](https://igraph.discourse.group/u/vtraag)\
**Post date:** [10 May 2020 13:59 UTC](https://igraph.discourse.group/t/igraph-es-t-to-igraph-vector-t-igraph-integer-t/218/2 "2020-05-10T13:59:22Z")

</div>

What would you like to do exactly? An `igraph_es_t` is an edge selector type, it doens’t yield a vector. Using `igraph_eit_create` you can create an edge iterator for a given edge selector. If so desired, you can store the resulting edge indices in a vector while iterating of the edge iterator. But perhaps you would simply like to use the resulting edge indices immediately, instead of first storing them in a vector?

---

<div class="post-metadata">

**Author:** ![Yas](https://avatars.discourse-cdn.com/v4/letter/y/b5ac83/32.png) [@Yas](https://igraph.discourse.group/u/Yas)\
**Post date:** [11 May 2020 11:46 UTC](https://igraph.discourse.group/t/igraph-es-t-to-igraph-vector-t-igraph-integer-t/218/3 "2020-05-11T11:46:01Z")

</div>

I think I understand what I need to do now, thanks for your reply!
