From: Ian Jackson Date: Mon, 14 Jan 2019 15:23:33 +0000 (+0000) Subject: wip X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=df6f7e2315dac278fd9f30533b1a38d83ff060ab;p=pandemic-rising-tide.git wip --- diff --git a/parse-input-graph b/parse-input-graph index 37e7a54..cec240a 100755 --- a/parse-input-graph +++ b/parse-input-graph @@ -159,7 +159,6 @@ sub dual () { # 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]; @@ -167,7 +166,8 @@ sub dual () { # $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) {