parent edge of vert

If I have a given vert, how can I find the edge(s) that have this vert?

I can loop through me.edges looking for the vert. Is there a built-in way?

mesh = bpy.data.objects['Cube'].data
verts = [mesh.vertices[mesh.edges[0].vertices[0]], mesh.vertices[mesh.edges[0].vertices[1]]]

…or there may be an easier way.

–edit–

well, misread the question

There is no built-in way. You have to loop over edges and check indices manually.

/Nathan

is this going to change when we get the new B mesh system?

i mean faces might get more then 3 4 vertices and may be edges might also get more then 2 vertices ?

Happy 2.5