helper function to transform leda graphs to boost added