helper function to transform graph Boost->Leda added