Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/GAP/pkg/fining/examples/include/   (GAP Algebra Version 4.15.1©)  Datei vom 27.6.2023 mit Größe 2 kB image not shown  

Quelle  incgeom_incgraph.include   Sprache: unbekannt

 
Spracherkennung für: .include vermutete Sprache: Unknown {[0] [0] [0]} [Methode: Schwerpunktbildung, einfache Gewichte, sechs Dimensionen]

gap> ps := SymplecticSpace(3,2);
W(32)
gap> pts := List(Points(ps));;
gap> lines := List(Lines(ps));;
gap> flags := Union(List(pts,x->List(Lines(x),y->FlagOfIncidenceStructure(ps,[x,y]))));;
gap> inc := function(x,y)
> if x = y then
>     return true;
> elif IsFlagOfIncidenceStructure(x) and IsElementOfIncidenceStructure(y) then
>     return IsIncident(x,y);
> elif IsElementOfIncidenceStructure(x) and IsElementOfIncidenceStructure(y) then
>     return false;
> elif IsFlagOfIncidenceStructure(x) and IsFlagOfIncidenceStructure(y) then   
>     return false;
> else 
>     return inc(y,x);
> fi;
> end;
function( x, y ) ... end
gap> type := function(x)
> if IsList(Type(x)) then
>     return 2;
> else
>     return 1;
> fi;
> end;
function( x ) ... end
gap> els := Union(pts,lines,flags);;
gap> struc := IncidenceStructure(els,inc,type,[1,2]);
Incidence structure of rank 2
gap> gamma := IncidenceGraph(struc);
rec( adjacencies := [ [ 313233 ], [ 343536 ], [ 373839 ], 
      [ 404142 ], [ 434445 ], [ 464748 ], [ 495051 ], 
      [ 525354 ], [ 555657 ], [ 585960 ], [ 616263 ], 
      [ 646566 ], [ 676869 ], [ 707172 ], [ 737475 ], 
      [ 314043 ], [ 325255 ], [ 336467 ], [ 344146 ], 
      [ 355358 ], [ 366570 ], [ 374249 ], [ 385461 ], 
      [ 396673 ], [ 445974 ], [ 456271 ], [ 475675 ], 
      [ 505772 ], [ 486368 ], [ 516069 ], [ 116 ], [ 117 ], 
      [ 118 ], [ 219 ], [ 220 ], [ 221 ], [ 322 ], [ 323 ], 
      [ 324 ], [ 416 ], [ 419 ], [ 422 ], [ 516 ], [ 525 ], 
      [ 526 ], [ 619 ], [ 627 ], [ 629 ], [ 722 ], [ 728 ], 
      [ 730 ], [ 817 ], [ 820 ], [ 823 ], [ 917 ], [ 927 ], 
      [ 928 ], [ 1020 ], [ 1025 ], [ 1030 ], [ 1123 ], [ 1126 ], 
      [ 1129 ], [ 1218 ], [ 1221 ], [ 1224 ], [ 1318 ], [ 1329 ], 
      [ 1330 ], [ 1421 ], [ 1426 ], [ 1428 ], [ 1524 ], [ 1525 ], 
      [ 1527 ] ], group := Group(()), isGraph := true, names := [ 1 .. 75 ],
  order := 75
  representatives := [ 12345678910111213141516
      171819202122232425262728293031323334
      353637383940414243444546474849505152
      535455565758596061626364656667686970
      7172737475 ], 
  schreierVector := [ -1, -2, -3, -4, -5, -6, -7, -8, -9, -10, -11, -12, -13
      -14, -15, -16, -17, -18, -19, -20, -21, -22, -23, -24, -25, -26, -27
      -28, -29, -30, -31, -32, -33, -34, -35, -36, -37, -38, -39, -40, -41
      -42, -43, -44, -45, -46, -47, -48, -49, -50, -51, -52, -53, -54, -55
      -56, -57, -58, -59, -60, -61, -62, -63, -64, -65, -66, -67, -68, -69
      -70, -71, -72, -73, -74, -75 ] )
gap> Diameter(gamma);
8
gap> Girth(gamma);
16

[Dauer der Verarbeitung: 0.23 Sekunden, vorverarbeitet 2026-06-17]