Hi, if you plan to refer to vertices by their index then you could use the following map
from dolfin import *
mesh = UnitSquareMesh(10, 10)
tdim = mesh.topology().dim()
# Init connectivity from facets to vertices
mesh.init(tdim-1, 0)
# Custom dictionary that always looks up sorted key
class MyDict(dict):
def get(self, key):
return dict.get(self, sorted(key))
v_2_f = MyDict((tuple(facet.entities(0)), facet.index())
for facet in facets(mesh))
print v_2_f[(5, 4)]