do notation to simplify Maybe handling inside mapGraphs