Mega-merger is a distributed algorithm aimed at solving the election problem in generic connected undirected graph.[1][2]