Hi, here are 2 ways how you can get the cell->edge connectivity
from dolfin import *
mesh = UnitSquareMesh(2, 2)
# 'long' version
for cell in cells(mesh):
print "cell", cell.index(), "has edges :",
for edge in edges(cell):
print edge.index(),
print
print
# 'short' version
for cell in cells(mesh):
print "cell", cell.index(), "has edges :", cell.entities(1)