Skip to content

Commit fdf70f6

Browse files
andreicostaandreicosta
authored andcommitted
Use shift instead pushout when transpose NACs
1 parent 95c588e commit fdf70f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/library/Category/TypedGraphRule/Adhesive.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ instance MAdhesive (RuleMorphism a b) where
9292
f' = RuleMorphism ruleR ruleP f'L f'K f'R
9393
g' = RuleMorphism ruleD ruleP g'L g'K g'R
9494

95-
transposedNACs = map (\nac -> fst (calculatePushout nac g'L)) (nacs ruleD)
95+
transposedNACs = createStep ShiftNACs g'L (nacs ruleD)
9696

9797
createdNACs = createStep ShiftNACs f'L (nacs ruleR)
9898

@@ -223,4 +223,4 @@ createSideRule createS k1 sideM1 create1 k2 sideM2 create2 = d
223223
c = map (\(x:y:z:_) -> (x,y,z)) b
224224
d = filter (\(ss1,ss2,m) -> ss1 <&> sideM1 == m <&> k1 &&
225225
ss2 <&> sideM2 == m <&> k2) c
226-
226+

0 commit comments

Comments
 (0)