# anticlockwise end of the i'th listed edge of Region Name.
foreach my $ra (sort keys %region) {
- next if $ra eq 'L' or $ra eq 'NZ';
my $adjsa = $region{$ra}{Adj};
foreach my $adjia (0..$#$adjsa) {
my $adja = $adjsa->[$adjia];
# $va is the vertex at the anticlockwise end
# of edge no.$adjia of region $ra
my $rb = $adja->{Name};
- next if $rb eq 'L' or $rb eq 'NZ';
+ next if ($rb eq 'L' or $rb eq 'NZ') and
+ ($ra eq 'L' or $ra eq 'NZ');
# $rb is the region on the other side of that edge
my $adjsb = $region{$rb}{Adj};
foreach my $adjib (0..$#$adjsb) {