Skip to content

Commit 0a528f3

Browse files
author
Markus Pfeiffer
committed
Make sure OneStepReachable places supports terminal places
1 parent 9d08bb8 commit 0a528f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gap/place.gi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ function(P)
140140

141141
for P2T in P2s do
142142
P2 := P2T[1]; # Place reachable on R1 by consolidated edge
143-
143+
144144
P2_loc := Location(P2);
145145
P2_inletter := InLetter(P2_loc);
146146
P2_outletter := OutLetter(P2_loc);
@@ -156,7 +156,7 @@ function(P)
156156
P2_letter = DigraphVertexLabel(vg, v2)[1][2] then
157157

158158
xi1 := Vertex(pres, v1, v, v2);
159-
if Colour(P2) = "green" then
159+
if IsTerminal(P2) or Colour(P2) = "green" then
160160
AddOrUpdate(res, [ __ID(P2), len ], xi1);
161161

162162
elif Colour(P2) = "red" then

0 commit comments

Comments
 (0)