@pimms.value<EOL><INDENT>def vertex_edge_index(labels, edges):<DEDENT>
d = {k:[] for k in labels}<EOL>for (i,(u,v)) in enumerate(edges.T):<EOL><INDENT>d[u].append(i)<EOL>d[v].append(i)<EOL><DEDENT>return pyr.pmap({k:tuple(v) for (k,v) in six.iteritems(d)})<EOL>
tess.vertex_edge_index is a map whose keys are vertices and whose values are tuples of the
edge indices of the edges that contain the relevant vertex.