Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  examples.tst   Sprache: unbekannt

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

#############################################################################
##
#W  standard/examples.tst
#Y  Copyright (C) 2019                                   Murray T. Whyte
##
##  Licensing information can be found in the README file of this package.
##
#############################################################################
##

#@local D, G8_3, gr, grrt
gap> START_TEST("Digraphs package: standard/examples.tst");
gap> LoadPackage("digraphs", false);;

#
gap> DIGRAPHS_StartTest();

# PetersenGraph
gap> ChromaticNumber(PetersenGraph());
3
gap> DigraphGirth(PetersenGraph());
2
gap> PetersenGraph(IsMutableDigraph);
<mutable digraph with 10 vertices, 30 edges>

# GeneralisedPetersenGraph
gap> D := GeneralisedPetersenGraph(83);
<immutable symmetric digraph with 16 vertices, 48 edges>
gap> IsBipartiteDigraph(D);
true
gap> D := GeneralisedPetersenGraph(157);
<immutable symmetric digraph with 30 vertices, 90 edges>
gap> IsBipartiteDigraph(D);
false
gap> D := GeneralisedPetersenGraph(102);
<immutable symmetric digraph with 20 vertices, 60 edges>
gap> IsVertexTransitive(D);
true
gap> D := GeneralisedPetersenGraph(112);
<immutable symmetric digraph with 22 vertices, 66 edges>
gap> IsVertexTransitive(D);
false
gap> D := GeneralisedPetersenGraph(52);
<immutable symmetric digraph with 10 vertices, 30 edges>
gap> IsIsomorphicDigraph(D, PetersenGraph());
true
gap> G8_3 := DigraphFromGraph6String("OCQa`Q?OH?a@A@@?_OGB@");
<immutable symmetric digraph with 16 vertices, 48 edges>
gap> D := GeneralisedPetersenGraph(83);
<immutable symmetric digraph with 16 vertices, 48 edges>
gap> IsIsomorphicDigraph(D, G8_3);
true
gap> D := GeneralisedPetersenGraph(1, -1);
Error, the argument <k> must be a non-negative integer,
gap> D := GeneralisedPetersenGraph(-11);
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
Error, no 1st choice method found for `GeneralisedPetersenGraph' on 2 argument\
s
gap> D := GeneralisedPetersenGraph(85);
Error, the argument <k> must be less than or equal to <n> / 2,
gap> D := GeneralisedPetersenGraph(84);
<immutable symmetric digraph with 16 vertices, 40 edges>

#  CompleteDigraph
gap> gr := CompleteDigraph(5);
<immutable complete digraph with 5 vertices>
gap> AutomorphismGroup(gr) = SymmetricGroup(5);
true
gap> CompleteDigraph(1) = EmptyDigraph(1);
true
gap> CompleteDigraph(0);
<immutable empty digraph with 0 vertices>
gap> CompleteDigraph(-1);
Error, the argument <n> must be a non-negative integer,
gap> CompleteDigraph(IsMutableDigraph, 10);
<mutable digraph with 10 vertices, 90 edges>

#  EmptyDigraph
gap> gr := EmptyDigraph(5);
<immutable empty digraph with 5 vertices>
gap> AutomorphismGroup(gr) = SymmetricGroup(5);
true
gap> EmptyDigraph(0);
<immutable empty digraph with 0 vertices>
gap> EmptyDigraph(-1);
Error, the argument <n> must be a non-negative integer,
gap> EmptyDigraph(IsMutableDigraph, -1);
Error, the argument <n> must be a non-negative integer,

#  CycleDigraph
gap> gr := CycleDigraph(0);
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
Error, no 1st choice method found for `CycleDigraph' on 1 arguments
gap> gr := CycleDigraph(1);
<immutable digraph with 1 vertex, 1 edge>
gap> AutomorphismGroup(gr) = Group(());
true
gap> gr := CycleDigraph(6);;
gap> AutomorphismGroup(gr) = Group((123456));
true
gap> DigraphEdges(gr);
[ [ 12 ], [ 23 ], [ 34 ], [ 45 ], [ 56 ], [ 61 ] ]
gap> gr := CycleDigraph(1000);
<immutable cycle digraph with 1000 vertices>
gap> gr := CycleDigraph(IsMutableDigraph, 6);
<mutable digraph with 6 vertices, 6 edges>
gap> gr = DigraphCycle(IsImmutableDigraph, 6);
true

#  ChainDigraph
gap> gr := ChainDigraph(0);
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
Error, no 1st choice method found for `ChainDigraph' on 1 arguments
gap> gr := ChainDigraph(1);
<immutable empty digraph with 1 vertex>
gap> IsEmptyDigraph(gr);
true
gap> gr = EmptyDigraph(1);
true
gap> gr := ChainDigraph(2);
<immutable chain digraph with 2 vertices>
gap> AutomorphismGroup(gr) = Group(());
true
gap> HasIsTransitiveDigraph(gr);
true
gap> IsTransitiveDigraph(gr);
true
gap> gr := ChainDigraph(10);
<immutable chain digraph with 10 vertices>
gap> OutNeighbours(gr);
[ [ 2 ], [ 3 ], [ 4 ], [ 5 ], [ 6 ], [ 7 ], [ 8 ], [ 9 ], [ 10 ], [  ] ]
gap> AutomorphismGroup(gr) = Group(());
true
gap> grrt := DigraphReflexiveTransitiveClosure(gr);
<immutable preorder digraph with 10 vertices, 55 edges>
gap> IsPartialOrderBinaryRelation(AsBinaryRelation(grrt));
true
gap> IsAntisymmetricDigraph(grrt);
true
gap> grrt;
<immutable partial order digraph with 10 vertices, 55 edges>
gap> ChainDigraph(IsMutableDigraph, 10);
<mutable digraph with 10 vertices, 9 edges>

#  CompleteBipartiteDigraph
gap> gr := CompleteBipartiteDigraph(20);
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
Error, no 1st choice method found for `CompleteBipartiteDigraph' on 2 argument\
s
gap> gr := CompleteBipartiteDigraph(02);
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
Error, no 1st choice method found for `CompleteBipartiteDigraph' on 2 argument\
s
gap> CompleteBipartiteDigraph(34);
<immutable complete bipartite digraph with bicomponent sizes 3 and 4>
gap> gr := CompleteBipartiteDigraph(43);
<immutable complete bipartite digraph with bicomponent sizes 4 and 3>
gap> AutomorphismGroup(gr) = Group((1234), (12), (567), (56));
true
gap> DigraphEdges(gr);
[ [ 15 ], [ 16 ], [ 17 ], [ 25 ], [ 26 ], [ 27 ], [ 35 ], 
  [ 36 ], [ 37 ], [ 45 ], [ 46 ], [ 47 ], [ 51 ], [ 52 ], 
  [ 53 ], [ 54 ], [ 61 ], [ 62 ], [ 63 ], [ 64 ], [ 71 ], 
  [ 72 ], [ 73 ], [ 74 ] ]
gap> gr := CompleteBipartiteDigraph(44);
<immutable complete bipartite digraph with bicomponents of size 4>
gap> AutomorphismGroup(gr) = Group((1234), (12), (5678), (56),
>                                  (15)(26)(37)(48));
true

#  CompleteMultipartiteDigraph
gap> CompleteMultipartiteDigraph([542]);
<immutable complete multipartite digraph with 11 vertices, 76 edges>
gap> CompleteMultipartiteDigraph([542101000]);
<immutable complete multipartite digraph with 1021 vertices, 42296 edges>
gap> CompleteMultipartiteDigraph([5]);
<immutable empty digraph with 5 vertices>
gap> CompleteMultipartiteDigraph([]);
<immutable empty digraph with 0 vertices>
gap> CompleteMultipartiteDigraph([54210, -5]);
Error, the argument <list> must be a list of positive integers,
gap> CompleteMultipartiteDigraph([502]);
Error, the argument <list> must be a list of positive integers,
gap> DigraphEdges(CompleteMultipartiteDigraph([32]));
[ [ 14 ], [ 15 ], [ 24 ], [ 25 ], [ 34 ], [ 35 ], [ 41 ], 
  [ 42 ], [ 43 ], [ 51 ], [ 52 ], [ 53 ] ]
gap> DigraphVertices(CompleteMultipartiteDigraph([212]));
1 .. 5 ]
gap> DigraphEdges(CompleteMultipartiteDigraph([782]));
[ [ 18 ], [ 19 ], [ 110 ], [ 111 ], [ 112 ], [ 113 ], [ 114 ], 
  [ 115 ], [ 116 ], [ 117 ], [ 28 ], [ 29 ], [ 210 ], [ 211 ], 
  [ 212 ], [ 213 ], [ 214 ], [ 215 ], [ 216 ], [ 217 ], [ 38 ], 
  [ 39 ], [ 310 ], [ 311 ], [ 312 ], [ 313 ], [ 314 ], [ 315 ], 
  [ 316 ], [ 317 ], [ 48 ], [ 49 ], [ 410 ], [ 411 ], [ 412 ], 
  [ 413 ], [ 414 ], [ 415 ], [ 416 ], [ 417 ], [ 58 ], [ 59 ], 
  [ 510 ], [ 511 ], [ 512 ], [ 513 ], [ 514 ], [ 515 ], 
  [ 516 ], [ 517 ], [ 68 ], [ 69 ], [ 610 ], [ 611 ], [ 612 ], 
  [ 613 ], [ 614 ], [ 615 ], [ 616 ], [ 617 ], [ 78 ], [ 79 ], 
  [ 710 ], [ 711 ], [ 712 ], [ 713 ], [ 714 ], [ 715 ], 
  [ 716 ], [ 717 ], [ 81 ], [ 82 ], [ 83 ], [ 84 ], [ 85 ], 
  [ 86 ], [ 87 ], [ 816 ], [ 817 ], [ 91 ], [ 92 ], [ 93 ], 
  [ 94 ], [ 95 ], [ 96 ], [ 97 ], [ 916 ], [ 917 ], [ 101 ], 
  [ 102 ], [ 103 ], [ 104 ], [ 105 ], [ 106 ], [ 107 ], 
  [ 1016 ], [ 1017 ], [ 111 ], [ 112 ], [ 113 ], [ 114 ], 
  [ 115 ], [ 116 ], [ 117 ], [ 1116 ], [ 1117 ], [ 121 ], 
  [ 122 ], [ 123 ], [ 124 ], [ 125 ], [ 126 ], [ 127 ], 
  [ 1216 ], [ 1217 ], [ 131 ], [ 132 ], [ 133 ], [ 134 ], 
  [ 135 ], [ 136 ], [ 137 ], [ 1316 ], [ 1317 ], [ 141 ], 
  [ 142 ], [ 143 ], [ 144 ], [ 145 ], [ 146 ], [ 147 ], 
  [ 1416 ], [ 1417 ], [ 151 ], [ 152 ], [ 153 ], [ 154 ], 
  [ 155 ], [ 156 ], [ 157 ], [ 1516 ], [ 1517 ], [ 161 ], 
  [ 162 ], [ 163 ], [ 164 ], [ 165 ], [ 166 ], [ 167 ], 
  [ 168 ], [ 169 ], [ 1610 ], [ 1611 ], [ 1612 ], [ 1613 ], 
  [ 1614 ], [ 1615 ], [ 171 ], [ 172 ], [ 173 ], [ 174 ], 
  [ 175 ], [ 176 ], [ 177 ], [ 178 ], [ 179 ], [ 1710 ], 
  [ 1711 ], [ 1712 ], [ 1713 ], [ 1714 ], [ 1715 ] ]

#  JohnsonDigraph
gap> JohnsonDigraph(04);
<immutable empty digraph with 0 vertices>
gap> JohnsonDigraph(00);
<immutable empty digraph with 1 vertex>
gap> JohnsonDigraph(30);
<immutable empty digraph with 1 vertex>
gap> JohnsonDigraph(10);
<immutable empty digraph with 1 vertex>
gap> gr := JohnsonDigraph(31);
<immutable symmetric digraph with 3 vertices, 6 edges>
gap> OutNeighbours(gr);
[ [ 23 ], [ 13 ], [ 12 ] ]
gap> gr := JohnsonDigraph(42);
<immutable symmetric digraph with 6 vertices, 24 edges>
gap> OutNeighbours(gr);
[ [ 2345 ], [ 1346 ], [ 1256 ], [ 1256 ], 
  [ 1346 ], [ 2345 ] ]
gap> JohnsonDigraph(51) = CompleteDigraph(5);
true
gap> JohnsonDigraph(3, -2);
Error, the arguments <n> and <k> must be non-negative integers,
gap> JohnsonDigraph(-12);
Error, the arguments <n> and <k> must be non-negative integers,
gap> JohnsonDigraph(IsMutableDigraph, 42);
<mutable digraph with 6 vertices, 24 edges>

# LollipopGraph
gap> LollipopGraph(54);
<immutable connected symmetric digraph with 9 vertices, 28 edges>
gap> LollipopGraph(84);
<immutable connected symmetric digraph with 12 vertices, 64 edges>
gap> D := LollipopGraph(53);
<immutable connected symmetric digraph with 8 vertices, 26 edges>
gap> DigraphNrVertices(D);
8
gap> DigraphNrEdges(D);
26
gap> DigraphNrAdjacencies(D);
13
gap> DigraphUndirectedGirth(D);
3
gap> LollipopGraph(IsMutableDigraph, 53);
<mutable digraph with 8 vertices, 26 edges>

#  SquareGridGraph
gap> SquareGridGraph(77);
<immutable planar connected bipartite symmetric digraph with bicomponent sizes\
 25 and 24>
gap> SquareGridGraph(24);
<immutable planar connected bipartite symmetric digraph with bicomponents of s\
ize 4>
gap> SquareGridGraph(IsMutableDigraph, 53);
<mutable digraph with 15 vertices, 44 edges>
gap> SquareGridGraph(IsImmutableDigraph, 11);
<immutable empty digraph with 1 vertex>
gap> SquareGridGraph(14);
<immutable planar connected bipartite symmetric digraph with bicomponents of s\
ize 2>
gap> SquareGridGraph(21);
<immutable planar connected bipartite symmetric digraph with bicomponents of s\
ize 1>

#  TriangularGridGraph
gap> TriangularGridGraph(34);
<immutable planar connected symmetric digraph with 12 vertices, 46 edges>
gap> TriangularGridGraph(IsMutableDigraph, 72);
<mutable digraph with 14 vertices, 50 edges>
gap> TriangularGridGraph(11);
<immutable empty digraph with 1 vertex>
gap> TriangularGridGraph(15);
<immutable planar connected bipartite symmetric digraph with bicomponent sizes\
 3 and 2>
gap> TriangularGridGraph(31);
<immutable planar connected bipartite symmetric digraph with bicomponent sizes\
 2 and 1>

# StarGraph
gap> StarGraph(IsMutable, 10);
<mutable digraph with 10 vertices, 18 edges>
gap> StarGraph(IsImmutableDigraph, 10);
<immutable complete bipartite digraph with bicomponent sizes 1 and 9>
gap> StarGraph(3);
<immutable complete bipartite digraph with bicomponent sizes 1 and 2>
gap> StarGraph(1);
<immutable empty digraph with 1 vertex>
gap> IsSymmetricDigraph(StarGraph(3));
true
gap> IsMultiDigraph(StarGraph(3));
false

#  KingsGraph
gap> KingsGraph(88);
<immutable connected symmetric digraph with 64 vertices, 420 edges>
gap> D := KingsGraph(47);
<immutable connected symmetric digraph with 28 vertices, 162 edges>
gap> IsConnectedDigraph(D);
true
gap> D := KingsGraph(22);
<immutable planar connected symmetric digraph with 4 vertices, 12 edges>
gap> OutNeighbors(D);
[ [ 234 ], [ 143 ], [ 412 ], [ 321 ] ]
gap> DigraphVertexLabels(KingsGraph(34));
[ [ 11 ], [ 21 ], [ 31 ], [ 12 ], [ 22 ], [ 32 ], [ 13 ], 
  [ 23 ], [ 33 ], [ 14 ], [ 24 ], [ 34 ] ]

#  QueensGraph
gap> QueensGraph(52);
<immutable connected symmetric digraph with 10 vertices, 66 edges>
gap> QueensGraph(34);
<immutable connected symmetric digraph with 12 vertices, 92 edges>
gap> D := QueensGraph(23);
<immutable connected symmetric digraph with 6 vertices, 26 edges>
gap> OutNeighbours(D);
[ [ 2354 ], [ 1463 ], [ 41526 ], [ 32615 ], 
  [ 6134 ], [ 5243 ] ]
gap> DigraphVertexLabels(QueensGraph(34));
[ [ 11 ], [ 21 ], [ 31 ], [ 12 ], [ 22 ], [ 32 ], [ 13 ], 
  [ 23 ], [ 33 ], [ 14 ], [ 24 ], [ 34 ] ]

#  RooksGraph
gap> RooksGraph(48);
<immutable connected regular symmetric digraph with 32 vertices, 320 edges>
gap> D := RooksGraph(32);
<immutable planar connected regular symmetric digraph with 6 vertices, 18 edge\
s>
gap> IsPlanarDigraph(D);
true
gap> OutNeighbours(D);
[ [ 234 ], [ 135 ], [ 126 ], [ 561 ], [ 462 ], 
  [ 453 ] ]
gap> DigraphVertexLabels(RooksGraph(34));
[ [ 11 ], [ 21 ], [ 31 ], [ 12 ], [ 22 ], [ 32 ], [ 13 ], 
  [ 23 ], [ 33 ], [ 14 ], [ 24 ], [ 34 ] ]

#  BishopsGraph
gap> D := BishopsGraph("dark", 79);
<immutable connected symmetric digraph with 32 vertices, 272 edges>
gap> IsConnectedDigraph(D);
true
gap> DigraphVertexLabels(D);
[ [ 11 ], [ 31 ], [ 51 ], [ 71 ], [ 22 ], [ 42 ], [ 62 ], 
  [ 13 ], [ 33 ], [ 53 ], [ 73 ], [ 24 ], [ 44 ], [ 64 ], 
  [ 15 ], [ 35 ], [ 55 ], [ 75 ], [ 26 ], [ 46 ], [ 66 ], 
  [ 17 ], [ 37 ], [ 57 ], [ 77 ], [ 28 ], [ 48 ], [ 68 ], 
  [ 19 ], [ 39 ], [ 59 ], [ 79 ] ]
gap> D := BishopGraph("light", 43);
<immutable connected symmetric digraph with 6 vertices, 16 edges>
gap> OutNeighbours(D);
[ [ 346 ], [ 45 ], [ 15 ], [ 1256 ], [ 234 ], [ 14 ] ]
gap> BishopsGraph("blue", 84);
Error, the argument <color> must be "dark", "light", or "both"
gap> D := BishopsGraph(54);
<immutable symmetric digraph with 20 vertices, 80 edges>
gap> IsConnectedDigraph(D);
false
gap> OutNeighbours(D);
[ [ 71319 ], [ 681420 ], [ 791115 ], [ 8101216 ], 
  [ 91317 ], [ 21218 ], [ 13111319 ], 
  [ 2412141620 ], [ 35131517 ], [ 41418 ], 
  [ 3717 ], [ 4681618 ], [ 15791719 ], 
  [ 28101820 ], [ 3919 ], [ 4812 ], [ 591113 ], 
  [ 6101214 ], [ 171315 ], [ 2814 ] ]
gap> DigraphVertexLabels(BishopsGraph(34));
[ [ 11 ], [ 21 ], [ 31 ], [ 12 ], [ 22 ], [ 32 ], [ 13 ], 
  [ 23 ], [ 33 ], [ 14 ], [ 24 ], [ 34 ] ]

#  Knight's Graph
gap> D := KnightsGraph(88);
<immutable connected symmetric digraph with 64 vertices, 336 edges>
gap> IsConnectedDigraph(D);
true
gap> D := KnightsGraph(33);
<immutable symmetric digraph with 9 vertices, 16 edges>
gap> IsConnectedDigraph(D);
false
gap> KnightsGraph(IsMutable, 39);
<mutable digraph with 27 vertices, 88 edges>
gap> DigraphVertexLabels(KnightsGraph(34));
[ [ 11 ], [ 21 ], [ 31 ], [ 12 ], [ 22 ], [ 32 ], [ 13 ], 
  [ 23 ], [ 33 ], [ 14 ], [ 24 ], [ 34 ] ]

# HaarGraph
gap> HaarGraph(1);
<immutable complete digraph with 2 vertices>
gap> OutNeighbours(last);
[ [ 2 ], [ 1 ] ]
gap> HaarGraph(2);
<immutable bipartite vertex-transitive symmetric digraph with bicomponents of \
size 2>
gap> OutNeighbours(last);
[ [ 3 ], [ 4 ], [ 1 ], [ 2 ] ]
gap> HaarGraph(3);
<immutable bipartite vertex-transitive symmetric digraph with bicomponents of \
size 2>
gap> OutNeighbours(last);
[ [ 34 ], [ 34 ], [ 12 ], [ 12 ] ]
gap> D := HaarGraph(16);
<immutable bipartite vertex-transitive symmetric digraph with bicomponents of \
size 5>
gap> IsBipartiteDigraph(D);
true

# BananaTree
gap> D := BananaTree(24);
<immutable undirected tree with 9 vertices>
gap> D := BananaTree(33);
<immutable undirected tree with 10 vertices>
gap> D := BananaTree(52);
<immutable undirected tree with 11 vertices>
gap> D := BananaTree(34);
<immutable undirected tree with 13 vertices>
gap> D := BananaTree(00);
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
Error, no 1st choice method found for `BananaTree' on 2 arguments
gap> D := BananaTree(IsMutableDigraph, 53);
<mutable digraph with 16 vertices, 30 edges>
gap> BananaTree(31);
Error, The second argument must be an integer greater than one

# TadpoleGraph
gap> TadpoleGraph(22);
Error, the first argument <m> must be an integer greater than 2
gap> TadpoleGraph(1015);
<immutable symmetric digraph with 25 vertices, 50 edges>
gap> TadpoleGraph(IsMutableDigraph, 56);
<mutable digraph with 11 vertices, 22 edges>
gap> IsSymmetricDigraph(TadpoleGraph(35));
true
gap> TadpoleGraph(31);
<immutable symmetric digraph with 4 vertices, 8 edges>

# BookGraph
gap> BookGraph(1);
<immutable bipartite symmetric digraph with bicomponents of size 2>
gap> BookGraph(2);
<immutable bipartite symmetric digraph with bicomponents of size 3>
gap> BookGraph(7);
<immutable bipartite symmetric digraph with bicomponents of size 8>
gap> BookGraph(12);
<immutable bipartite symmetric digraph with bicomponents of size 13>
gap> BookGraph(IsMutable, 12);
<mutable digraph with 26 vertices, 74 edges>
gap> IsSymmetricDigraph(BookGraph(24));
true
gap> IsBipartiteDigraph(BookGraph(32));
true

# StackedBookGraph
gap> StackedBookGraph(15);
<immutable bipartite symmetric digraph with bicomponents of size 5>
gap> StackedBookGraph(2010);
<immutable bipartite symmetric digraph with bicomponents of size 105>
gap> StackedBookGraph(72);
<immutable bipartite symmetric digraph with bicomponents of size 8>
gap> StackedBookGraph(121);
<immutable bipartite symmetric digraph with bicomponent sizes 1 and 12>
gap> StackedBookGraph(IsMutable, 122);
<mutable digraph with 26 vertices, 74 edges>
gap> IsSymmetricDigraph(StackedBookGraph(43));
true
gap> IsBipartiteDigraph(StackedBookGraph(54));
true

# BinaryTree
gap> BinaryTree(4);
<immutable digraph with 15 vertices, 14 edges>

# AndrasfaiGraph
gap> D := AndrasfaiGraph(1);
<immutable Hamiltonian biconnected vertex-transitive symmetric digraph with 2 \
vertices, 2 edges>
gap> D := AndrasfaiGraph(3);
<immutable Hamiltonian biconnected vertex-transitive symmetric digraph with 8 \
vertices, 24 edges>
gap> IsIsomorphicDigraph(D, MobiusLadderGraph(4));
true
gap> AndrasfaiGraph(0);
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
Error, no 1st choice method found for `AndrasfaiGraph' on 1 arguments

# BinomialTreeGraph
gap> D := BinomialTreeGraph(6);
<immutable undirected tree with 6 vertices>
gap> D := BinomialTreeGraph(16);
<immutable undirected tree with 16 vertices>
gap> DigraphEdges(D);
[ [ 12 ], [ 13 ], [ 15 ], [ 19 ], [ 21 ], [ 31 ], [ 34 ], 
  [ 43 ], [ 51 ], [ 56 ], [ 57 ], [ 65 ], [ 75 ], [ 78 ], 
  [ 87 ], [ 91 ], [ 910 ], [ 911 ], [ 913 ], [ 109 ], [ 119 ], 
  [ 1112 ], [ 1211 ], [ 139 ], [ 1314 ], [ 1315 ], [ 1413 ], 
  [ 1513 ], [ 1516 ], [ 1615 ] ]
gap> BinomialTreeGraph(1);
<immutable empty digraph with 1 vertex>
gap> BinomialTreeGraph(0);
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
Error, no 1st choice method found for `BinomialTreeGraph' on 1 arguments

# BondyGraph
gap> D := BondyGraph(2);
<immutable symmetric digraph with 34 vertices, 102 edges>
gap> IsIsomorphicDigraph(D, GeneralisedPetersenGraph(172));
true
gap> BondyGraph(-1);
Error, the argument <n> must be a non-negative integer,

# CirculantGraph
gap> D := CirculantGraph(5, [12]);
<immutable Hamiltonian biconnected vertex-transitive symmetric digraph with 5 \
vertices, 20 edges>
gap> IsIsomorphicDigraph(D, CompleteDigraph(5));
true
gap> D := CirculantGraph(6, [23]);
<immutable Hamiltonian biconnected vertex-transitive symmetric digraph with 6 \
vertices, 18 edges>
gap> IsIsomorphicDigraph(D, PrismGraph(3));
true
gap> D := CirculantGraph(4, [1]);
<immutable Hamiltonian biconnected vertex-transitive symmetric digraph with 4 \
vertices, 8 edges>
gap> IsIsomorphicDigraph(D, CycleGraph(4));
true
gap> CirculantGraph(4, [15]);
Error, arguments must be an integer <n> greater than 1 and a list of integers \
between 1 and n,
gap> CirculantGraph(0, [1]);
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
Error, no 1st choice method found for `CirculantGraph' on 2 arguments
gap> D := CirculantGraph(10, [15]);
<immutable Hamiltonian biconnected vertex-transitive symmetric digraph with 10\
 vertices, 30 edges>
gap> IsIsomorphicDigraph(D, MobiusLadderGraph(5));
true
gap> Set(Filtered(Combinations([1 .. 6]),
> x -> IsUndirectedForest(DigraphCopy(CirculantGraph(6, x)))));
[ [  ], [ 3 ] ]
gap> Set(Filtered(Combinations([1 .. 6]),
> x -> IsUndirectedForest(CirculantGraph(6, x))));
[ [  ], [ 3 ] ]
gap> D := CirculantGraph(6, [3]);
<immutable undirected forest with 6 vertices>
gap> IsUndirectedForest(D);
true
gap> IsUndirectedForest(DigraphCopy(D));
true

# CycleGraph
gap> IsIsomorphicDigraph(CycleGraph(5), DigraphSymmetricClosure(CycleDigraph(5)));
true
gap> CycleGraph(2);
Error, the argument <n> must be an integer greater than 2,

# GearGraph
gap> D := GearGraph(4);
<immutable symmetric digraph with 9 vertices, 24 edges>
gap> DigraphEdges(D);
[ [ 12 ], [ 18 ], [ 21 ], [ 23 ], [ 29 ], [ 32 ], [ 34 ], 
  [ 43 ], [ 45 ], [ 49 ], [ 54 ], [ 56 ], [ 65 ], [ 67 ], 
  [ 69 ], [ 76 ], [ 78 ], [ 81 ], [ 87 ], [ 89 ], [ 92 ], 
  [ 94 ], [ 96 ], [ 98 ] ]
gap> GearGraph(2);
Error, the argument <n> must be an integer greater than 2,

# HalvedCubeGraph
gap> HalvedCubeGraph(1);
<immutable empty digraph with 1 vertex>
gap> D := HalvedCubeGraph(3);
<immutable Hamiltonian symmetric digraph with 4 vertices, 12 edges>
gap> IsIsomorphicDigraph(D, CompleteDigraph(4));
true
gap> HalvedCubeGraph(-1);
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
Error, no 1st choice method found for `HalvedCubeGraph' on 1 arguments

# HanoiGraph
gap> D := HanoiGraph(1);
<immutable planar Hamiltonian symmetric digraph with 3 vertices, 6 edges>
gap> IsIsomorphicDigraph(D, CycleGraph(3));
true
gap> HanoiGraph(4);
<immutable planar Hamiltonian symmetric digraph with 81 vertices, 240 edges>
gap> IsPlanarDigraph(gr);
true
gap> IsHamiltonianDigraph(gr);
true
gap> IsPlanarDigraph(DigraphMutableCopy(gr));
true
gap> HanoiGraph(0);
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
Error, no 1st choice method found for `HanoiGraph' on 1 arguments

# HelmGraph
gap> D := HelmGraph(6);
<immutable symmetric digraph with 13 vertices, 36 edges>
gap> DigraphEdges(D);
[ [ 12 ], [ 16 ], [ 17 ], [ 18 ], [ 21 ], [ 23 ], [ 27 ], 
  [ 29 ], [ 32 ], [ 34 ], [ 37 ], [ 310 ], [ 43 ], [ 45 ], 
  [ 47 ], [ 411 ], [ 54 ], [ 56 ], [ 57 ], [ 512 ], [ 61 ], 
  [ 65 ], [ 67 ], [ 613 ], [ 71 ], [ 72 ], [ 73 ], [ 74 ], 
  [ 75 ], [ 76 ], [ 81 ], [ 92 ], [ 103 ], [ 114 ], [ 125 ], 
  [ 136 ] ]
gap> HelmGraph(1);
Error, the argument <n> must be an integer greater than 2,

# HypercubeGraph
gap> HypercubeGraph(0);
<immutable empty digraph with 1 vertex>
gap> D := HypercubeGraph(2);
<immutable Hamiltonian bipartite symmetric digraph with bicomponents of size 2\
>
gap> IsIsomorphicDigraph(D, CycleGraph(4));
true
gap> HypercubeGraph(-1);
Error, the argument <n> must be a non-negative integer,

# KellerGraph
gap> IsIsomorphicDigraph(EmptyDigraph(4), KellerGraph(1));
true
gap> D := KellerGraph(2);
<immutable Hamiltonian symmetric digraph with 16 vertices, 80 edges>
gap> KellerGraph(-1);
Error, the argument <n> must be a non-negative integer,

# KneserGraph
gap> IsIsomorphicDigraph(KneserGraph(51), CompleteDigraph(5));
true
gap> KneserGraph(63);
<immutable edge- and vertex-transitive symmetric digraph with 20 vertices, 20 \
edges>
gap> KneserGraph(34);
Error, argument <n> must be greater than or equal to argument <k>
gap> KneserGraph(3, -1);
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
Error, no 1st choice method found for `KneserGraph' on 2 arguments
gap> KneserGraph(-14);
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
Error, no 1st choice method found for `KneserGraph' on 2 arguments
gap> D := KneserGraph(52);
<immutable edge- and vertex-transitive symmetric digraph with 10 vertices, 30 \
edges>
gap> DigraphEdges(D);
[ [ 18 ], [ 19 ], [ 110 ], [ 26 ], [ 27 ], [ 210 ], [ 35 ], 
  [ 37 ], [ 39 ], [ 45 ], [ 46 ], [ 48 ], [ 53 ], [ 54 ], 
  [ 510 ], [ 62 ], [ 64 ], [ 69 ], [ 72 ], [ 73 ], [ 78 ], 
  [ 81 ], [ 84 ], [ 87 ], [ 91 ], [ 93 ], [ 96 ], [ 101 ], 
  [ 102 ], [ 105 ] ]
gap> D := KneserGraph(64);
<immutable empty digraph with 15 vertices>
gap> ChromaticNumber(D);
1
gap> D := KneserGraph(102);
<immutable Hamiltonian edge- and vertex-transitive symmetric digraph with 45 v\
ertices, 1260 edges>

# LindgrenSousselierGraph
gap> D := LindgrenSousselierGraph(1);
<immutable symmetric digraph with 10 vertices, 30 edges>
gap> AutomorphismGroup(D) = Group([(48)(57)(910), (2109)(345678), (123410)(57968)]);
true
gap> LindgrenSousselierGraph(0);
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
Error, no 1st choice method found for `LindgrenSousselierGraph' on 1 arguments
gap> LindgrenSousselierGraph(3);
<immutable symmetric digraph with 22 vertices, 70 edges>
gap> IsIsomorphicDigraph(LindgrenSousselierGraph(1), GeneralisedPetersenGraph(52));
true

# MobiusLadderGraph
gap> MobiusLadderGraph(2);
Error, the argument <n> must be an integer equal to 4 or more,
gap> D := MobiusLadderGraph(4);
<immutable symmetric digraph with 8 vertices, 24 edges>
gap> DigraphEdges(D);
[ [ 12 ], [ 18 ], [ 15 ], [ 21 ], [ 23 ], [ 26 ], [ 32 ], 
  [ 34 ], [ 37 ], [ 43 ], [ 45 ], [ 48 ], [ 54 ], [ 56 ], 
  [ 51 ], [ 65 ], [ 67 ], [ 62 ], [ 76 ], [ 78 ], [ 73 ], 
  [ 81 ], [ 87 ], [ 84 ] ]
gap> MobiusLadderGraph(10);
<immutable symmetric digraph with 20 vertices, 60 edges>

# MycielskiGraph
gap> D := MycielskiGraph(2);
<immutable Hamiltonian symmetric digraph with 2 vertices, 2 edges>
gap> IsIsomorphicDigraph(MycielskiGraph(3), CycleGraph(5));
true
gap> MycielskiGraph(1);
Error, the argument <n> must be an integer greater than 1,

# OddGraph
gap> IsIsomorphicDigraph(OddGraph(2), CycleGraph(3));
true
gap> OddGraph(4);
<immutable edge- and vertex-transitive symmetric digraph with 35 vertices, 140\
 edges>
gap> OddGraph(0);
Error, the argument <n> must be an integer greater than 0,

# PathGraph
gap> D := PathGraph(4);
<immutable undirected tree with 4 vertices>
gap> IsIsomorphicDigraph(D, DigraphSymmetricClosure(ChainDigraph(4)));
true
gap> PathGraph(1);
<immutable empty digraph with 1 vertex>
gap> PathGraph(0);
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
Error, no 1st choice method found for `PathGraph' on 1 arguments

# PermutationStarGraph
gap> D := PermutationStarGraph(32);
<immutable vertex-transitive symmetric digraph with 6 vertices, 12 edges>
gap> IsIsomorphicDigraph(D, CycleGraph(6));
true
gap> D := PermutationStarGraph(43);
<immutable vertex-transitive symmetric digraph with 24 vertices, 72 edges>
gap> DigraphDiameter(D);
4
gap> IsIsomorphicDigraph(D, GeneralisedPetersenGraph(125));
true
gap> PermutationStarGraph(24);
Error, the argument <n> must be greater than or equal to <k>,
gap> PermutationStarGraph(5, -1);
Error, the arguments <n> and <k> must be integers, with n greater than 0 and k\
 non-negative,
gap> PermutationStarGraph(02);
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
Error, no 1st choice method found for `PermutationStarGraph' on 2 arguments

# PrismGraph
gap> PrismGraph(3);
<immutable symmetric digraph with 6 vertices, 18 edges>
gap> PrismGraph(2);
Error, the argument <n> must be an integer equal to 3 or more,
gap> D := PrismGraph(5);
<immutable symmetric digraph with 10 vertices, 30 edges>
gap> DigraphEdges(D);
[ [ 12 ], [ 15 ], [ 16 ], [ 21 ], [ 23 ], [ 27 ], [ 32 ], 
  [ 34 ], [ 38 ], [ 43 ], [ 45 ], [ 49 ], [ 51 ], [ 54 ], 
  [ 510 ], [ 61 ], [ 67 ], [ 610 ], [ 72 ], [ 76 ], [ 78 ], 
  [ 83 ], [ 87 ], [ 89 ], [ 94 ], [ 98 ], [ 910 ], [ 105 ], 
  [ 106 ], [ 109 ] ]

# StackedPrismGraph
gap> D := StackedPrismGraph(41);
<immutable symmetric digraph with 4 vertices, 8 edges>
gap> IsIsomorphicDigraph(D, CycleGraph(4));
true
gap> D := StackedPrismGraph(52);
<immutable symmetric digraph with 10 vertices, 30 edges>
gap> IsIsomorphicDigraph(D, PrismGraph(5));
true
gap> StackedPrismGraph(33);
<immutable symmetric digraph with 9 vertices, 30 edges>
gap> StackedPrismGraph(22);
Error, the arguments <n> and <k> must be integers, with <n> greater than 2 and\
 <k> greater than 0,
gap> StackedPrismGraph(30);
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
Error, no 1st choice method found for `StackedPrismGraph' on 2 arguments
gap> StackedPrismGraph(0, -1);
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
Error, no 1st choice method found for `StackedPrismGraph' on 2 arguments

# WalshHadamardGraph
gap> WalshHadamardGraph(1);
<immutable symmetric digraph with 4 vertices, 4 edges>
gap> D := WalshHadamardGraph(2);
<immutable symmetric digraph with 8 vertices, 16 edges>
gap> IsIsomorphicDigraph(D, CycleGraph(8));
true
gap> WalshHadamardGraph(0);
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
Error, no 1st choice method found for `WalshHadamardGraph' on 1 arguments

# WebGraph
gap> D := WebGraph(3);
<immutable symmetric digraph with 9 vertices, 24 edges>
gap> DigraphEdges(D);
[ [ 14 ], [ 25 ], [ 36 ], [ 45 ], [ 46 ], [ 41 ], [ 47 ], 
  [ 54 ], [ 56 ], [ 52 ], [ 58 ], [ 64 ], [ 65 ], [ 63 ], 
  [ 69 ], [ 78 ], [ 79 ], [ 74 ], [ 87 ], [ 89 ], [ 85 ], 
  [ 97 ], [ 98 ], [ 96 ] ]
gap> WebGraph(2);
Error, the argument <n> must be an integer greater than 2,

# WheelGraph
gap> D := WheelGraph(5);
<immutable planar Hamiltonian symmetric digraph with 5 vertices, 16 edges>
gap> DigraphEdges(D);
[ [ 12 ], [ 14 ], [ 15 ], [ 21 ], [ 23 ], [ 25 ], [ 32 ], 
  [ 34 ], [ 35 ], [ 41 ], [ 43 ], [ 45 ], [ 51 ], [ 52 ], 
  [ 53 ], [ 54 ] ]
gap> WheelGraph(2);
Error, the argument <n> must be an integer greater than 3,
gap> ChromaticNumber(D);
3
gap> D := WheelGraph(6);
<immutable planar Hamiltonian symmetric digraph with 6 vertices, 20 edges>
gap> ChromaticNumber(D);
4

# WindmillGraph
gap> D := WindmillGraph(33);
<immutable symmetric digraph with 7 vertices, 18 edges>
gap> DigraphEdges(D);
[ [ 12 ], [ 17 ], [ 21 ], [ 27 ], [ 34 ], [ 37 ], [ 43 ], 
  [ 47 ], [ 56 ], [ 57 ], [ 65 ], [ 67 ], [ 71 ], [ 72 ], 
  [ 73 ], [ 74 ], [ 75 ], [ 76 ] ]
gap> WindmillGraph(03);
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
Error, no 1st choice method found for `WindmillGraph' on 2 arguments
gap> WindmillGraph(21);
Error, the arguments <n> and <m> must be integers greater than 1,
gap> WindmillGraph(-10);
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
Error, no 1st choice method found for `WindmillGraph' on 2 arguments

# PancakeGraph
gap> D := PancakeGraph(3);
<immutable Hamiltonian symmetric digraph with 6 vertices, 12 edges>
gap> ChromaticNumber(D);
2
gap> IsVertexTransitive(D);
true
gap> DigraphUndirectedGirth(D);
6
gap> IsHamiltonianDigraph(D);
true
gap> D := PancakeGraph(IsMutableDigraph, 1);
<mutable empty digraph with 1 vertex>

# BurntPancakeGraph
gap> BurntPancakeGraph(3);
<immutable symmetric digraph with 48 vertices, 144 edges>
gap> BurntPancakeGraph(4);
<immutable symmetric digraph with 384 vertices, 1536 edges>
gap> BurntPancakeGraph(5);
<immutable symmetric digraph with 3840 vertices, 19200 edges>
gap> BurntPancakeGraph(IsMutableDigraph, 1);
<mutable digraph with 1 vertex, 1 edge>

#
gap> DIGRAPHS_StopTest();
gap> STOP_TEST("Digraphs package: standard/examples.tst", 0);

[Dauer der Verarbeitung: 0.5 Sekunden, vorverarbeitet 2026-06-16]

                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....

Besucherstatistik

Besucherstatistik

Statistik
#Sources=492969
#Domains=607362