getEdges_all and updateByMGU candidates