# Getting node ID strings from a GVJ\_t edge

**URL:** https://forum.graphviz.org/t/getting-node-id-strings-from-a-gvj-t-edge/1356
**Category:** Dev
**Created:** [November 7, 2022, 2:09am UTC](https://forum.graphviz.org/t/getting-node-id-strings-from-a-gvj-t-edge/1356 "2022-11-07T02:09:05Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![pakin](https://avatars.discourse-cdn.com/v4/letter/p/58f4c7/32.png) [@pakin](https://forum.graphviz.org/u/pakin)
#### Post date: [November 7, 2022, 2:09am UTC](https://forum.graphviz.org/t/getting-node-id-strings-from-a-gvj-t-edge/1356/1 "2022-11-07T02:09:05Z")

</div>

There’s a plugin I’d like to derive from `gvrender_core_svg.c`, but I got stuck at `svg_begin_edge`. My code needs the ID strings of the nodes connected by the edge. However, I don’t know how to acquire those from the `GVJ_t *` passed into the function.

While I can get the endpoint `node_t *` values with `agtail(obj->u.e)` and `aghead(obj->u.e)`, I don’t see a way to map those into an `obj_state_t *` so I can grab their ID strings with `obj->id`.

Am I missing something obvious, or is this difficult/impossible?

Thanks,  
— Scott
