correction to c edges and c edges with ghost