Prevent CommunityGenerator to generate duplicate cross edges

At the moment CommunityGenerator creates parallel edges between communities. There is already a prevention for parallel edges in a communties, this patch only adds the check for cross-edges.