@@ -25,7 +25,7 @@ REFERENCES:
2525- [TP1994 ]_
2626
2727- :wikipedia:`Generalized_quadrangle`
28-
28+
2929AUTHORS:
3030
3131- Ivo Maffei ( 2020-07-26) : initial version
@@ -96,7 +96,7 @@ def generalised_quadrangle_with_spread(const int s, const int t,
9696 from sage.combinat.designs.incidence_structures import IncidenceStructure
9797 from sage.misc.unknown import Unknown
9898 from sage.arith.misc import is_prime_power
99-
99+
100100 if s < 1 or t < 1 :
101101 if existence:
102102 return False
@@ -127,11 +127,11 @@ def is_GQ_with_spread(GQ, S, s=None, t=None):
127127 check that S is a spread of GQ
128128
129129 INPUT:
130-
131- - ``GQ`` -- IncidenceStructure; the incidence structure that is supposed to
130+
131+ - ``GQ`` -- IncidenceStructure; the incidence structure that is supposed to
132132 be a generalised quadrangle
133133
134- - ``S`` -- iterable; the spread of ``GQ`` as an
134+ - ``S`` -- iterable; the spread of ``GQ`` as an
135135 iterable of the blocks of ``GQ``
136136
137137 - ``s, t`` -- integers ( optional) ; if `( s,t) ` are given, then we check that
@@ -175,23 +175,23 @@ def is_GQ_with_spread(GQ, S, s=None, t=None):
175175
176176def dual_GQ_ovoid (GQ , O ):
177177 r """
178- Compute the dual incidence structure of GQ
178+ Compute the dual incidence structure of GQ
179179 and return the image of `O` under the dual map
180180
181181 INPUT:
182182
183- - ``GQ`` -- IncidenceStructure; the generalised quadrangle we want
183+ - ``GQ`` -- IncidenceStructure; the generalised quadrangle we want
184184 the dual of
185185
186186 - ``O`` -- iterable; the iterable of blocks we want to compute the dual
187187
188188 OUTPUT:
189189
190- A pair ``( D, S) `` where ``D`` is the dual of ``GQ`` and
190+ A pair ``( D, S) `` where ``D`` is the dual of ``GQ`` and
191191 ``S`` is the dual of ``O``
192192
193193 EXAMPLES::
194-
194+
195195 sage: from sage. combinat. designs. gen_quadrangles_with_spread import \
196196 .... : dual_GQ_ovoid
197197 sage: t = designs. generalised_quadrangle_hermitian_with_ovoid( 3)
@@ -213,10 +213,10 @@ def dual_GQ_ovoid(GQ, O):
213213 ( 2, 4)
214214 sage: is_GQ_with_spread( * t)
215215 True
216-
216+
217217 """
218218 from sage.combinat.designs.incidence_structures import IncidenceStructure
219-
219+
220220 # GQ.ground_set()[i] becomes newBlocks[i]
221221 # GQ.blocks()[i] becomes i
222222 newBlocks = [[] for _ in range (GQ.num_points())]
@@ -283,7 +283,7 @@ def generalised_quadrangle_hermitian_with_ovoid(const int q):
283283 from sage.libs.gap.libgap import libgap
284284 from sage.combinat.designs.incidence_structures import IncidenceStructure
285285 from sage.arith.misc import is_prime_power
286-
286+
287287 GU = libgap.GU(4 , q)
288288 H = libgap.InvariantSesquilinearForm(GU)[" matrix" ]
289289 Fq = libgap.GF(q * q)
@@ -328,7 +328,7 @@ def generalised_quadrangle_hermitian_with_ovoid(const int q):
328328 J = [[0 , 0 , 0 , 0 , 1 ], [0 , 0 , 0 , 1 , 0 ], [0 , 0 , 1 , 0 , 0 ],
329329 [0 , 1 , 0 , 0 , 0 ], [1 , 0 , 0 , 0 , 0 ]]
330330 J = libgap(J) # matrix of the invariant form of GU(5,q)
331-
331+
332332 # p' is collinear to p iff p'Jp^q = 0
333333 # note that p'Jp^q = bx^q + c where p' = (a,b,0,c,d) and p = (0,1,y,x,0)
334334 ovoid = []
@@ -339,3 +339,35 @@ def generalised_quadrangle_hermitian_with_ovoid(const int q):
339339
340340 D = IncidenceStructure(lines)
341341 return (D, ovoid)
342+
343+ def test ():
344+ r """
345+ TESTS::
346+
347+ sage: t = designs. generalised_quadrangle_hermitian_with_ovoid( 3)
348+ sage: d = t[0 ]
349+ sage: d. is_generalized_quadrangle( parameters=True)
350+ ( 9, 3)
351+ sage: dd = d. dual( )
352+ sage: dd. is_generalized_quadrangle( parameters=True)
353+ ( 3, 9)
354+ sage: di = d. incidence_graph( )
355+ sage: di. diameter( ) == 4
356+ True
357+ sage: di. girth( ) == 8
358+ True
359+ sage: d. is_uniform( )
360+ 10
361+ sage: d. is_regular( )
362+ 4
363+ sage: ddi = dd. incidence_graph( )
364+ sage: ddi. diameter( ) == 4
365+ True
366+ sage: ddi. girth( ) == 8
367+ True
368+ sage: dd. is_uniform( )
369+ 4
370+ sage: dd. is_regular( )
371+ 10
372+ """
373+ return True
0 commit comments