Generating polygonal mesh from a set of edges

Hello,
I’m pretty new to Fenics and I would like to know what’s the quickest way to create a meshed polygon when being given the list of its edges ? I think I’ll have to look for GCAL of somethin but i don’t really understand the meshing principles in fenics.
Thank’s a lot !
Eloi.

I don’t know about edges, but if you have the corner vertices of the Polygon you can create the mesh in the following way:

from dolfin import *
from mshr import Polygon, generate_mesh
import matplotlib.pyplot as plt

domain = Polygon([Point(1,0),Point(0.75,0.75),Point(0,1),Point(0.25,0.25)])
mesh = generate_mesh(domain,5)

plot(mesh)
plt.show()