graph-triangulate function

Triangulation of an undirected graph