On a triangular mesh, I have a set of quantities defined on each vertex (i), but also need to define a quantity on the edges to all neighbour vertices of i (a quantity on ij for all neighbours j).
The following works for accessing the vertices associated with each edge:
for edge in edges(mesh):
print "edge", edge.index()
for vertex in vertices(edge):
print "vertex", vertex.index()
How can I do the reverse, and get the edges associated with each vertex? If I try reversing the labels above, I get that 'edges(vertex)' is invalid syntax.