Goto Chapter: Top 1 2 3 4 Bib Ind
 [Top of Book]  [Contents]   [Previous Chapter]   [Next Chapter] 

4 Drawing the Faithful Transitive Permutation Representation Graph
 4.1 Drawing functions
 4.2 Information Level of Drawing Functions

4 Drawing the Faithful Transitive Permutation Representation Graph

4.1 Drawing functions

One of the advantages of Faithful Transitive Permutation Representation Graph are on Groups generated by involutions, such as C-groups. These graphs are very useful in the research of abstract polytopes and hypertopes, mainly called as "Schreier coset graphs" or "CPR graphs" in this area. Here we will give a function that builds this graph given a permutation group generated by involutions, a group and one of its core-free subgroups or by giving an isomorphism of the group into the symmetric group acting faithfully and transitively on its domain. To use Graphviz in order to create the image file, you need to be running GAP on a Linux Environment (Windows Subsystem for Linux is supported), with graphviz installed.

4.1-1 DotFTPRGraph
‣ DotFTPRGraph( G )( operation )
‣ DotFTPRGraph( G[, generators_name] )( operation )
‣ DotFTPRGraph( map )( operation )
‣ DotFTPRGraph( map[, generators_name] )( operation )
‣ DotFTPRGraph( H, K )( operation )
‣ DotFTPRGraph( H, K[, generators_name] )( operation )

Returns: a graph written in dot

Given a transitive permutation group G, a faithful transitive permutation representation of a group map or a group H and one of its core-free subgroups K, the function will output the permutation representation graph written in the language of a Dot file. If given a list of the name of the generators generators_name, these will be given to the label of their action on the graph. Otherwise, the labels will be r0, r1, r2, ... for the generators G.1, G.2, G.3, ....

gap> G:= Group((1,2),(2,3),(3,4));; H :=Subgroup(G,[(1,2),(2,3)]);;
gap> dotprint := DotFTPRGraph(G);
"digraph {\n1 -> 2 [label = r1,dir=none];\n 2 -> 3 [label = r2,dir=none];\n 3 \
-> 4 [label = r3,dir=none];\n }\n"
gap> Print(dotprint);
digraph {
1 -> 2 [label = r1,dir=none];
 2 -> 3 [label = r2,dir=none];
 3 -> 4 [label = r3,dir=none];
 }
gap> Print(DotFTPRGraph(G,H,["A","B","C"]));
digraph {
3 -> 4 [label = A,dir=none];
 2 -> 3 [label = B,dir=none];
 1 -> 2 [label = C,dir=none];
 }

4.1-2 DrawFTPRGraph
‣ DrawFTPRGraph( arg )( function )

Returns: an image of the faithful transitive permutation representation graph

This global function takes as input the following arguments:

Given a string of a graph in dot dotstring, this function will output and show an image of the graph. Alternatively, a transitive permutation group G, a faithful transitive permutation representation of a group map or a group H and one of its core-free subgroups K, can be given. This will use DotFTPRGraph to calculate the dotstring. Moreover, extra parameters can be given as a form of a record rec. The set of parameters that can be given inside a record can be found below, with information regarding their effect:

gap> G:= SymmetricGroup(4);;H:= Subgroup(G,[(1,2)]);;K:= Subgroup(G,[(1,2,3)]);;
gap> DrawFTPRGraph(G);
gap> texfile := DrawFTPRGraph(G,H,rec(viewtexfile := true));; 
gap> Print(texfile{[1..115]});
\documentclass{article}
\usepackage[x11names, svgnames, rgb]{xcolor}
\usepackage[utf8]{inputenc}
\usepackage{tikz}
gap> DrawFTPRGraph(FactorCosetAction(G,K),rec(directory := "myfolder", layout:="fdp"));;

4.1-3 TeXFTPRGraph
‣ TeXFTPRGraph( arg )( function )

Returns: an image of the faithful transitive permutation representation graph

The same as DrawFTPRGraph with the parameter viewtexfile := true.

4.1-4 DrawTeXFTPRGraph
‣ DrawTeXFTPRGraph( arg )( function )

Returns: an image of the faithful transitive permutation representation graph

The same as DrawFTPRGraph with the parameter tikz := true.

4.2 Information Level of Drawing Functions

We can set the amount of verbosity of the functions "DrawFTPRGraph", "TeXFTPRGraph" and "DrawTeXFTPRGraph", which can be controlled by the InfoDrawFTPR variable. As of right now, there are only two levels of the InfoDrawFTPR and, by default, the level is set as 1. To change to level 2, you can do the following:

gap> SetInfoLevel(InfoDrawFTPR,2);

Particularly, InfoDrawFTPR in level 2 will give information regarding the location in which the files are being created and processed.

 [Top of Book]  [Contents]   [Previous Chapter]   [Next Chapter] 
Goto Chapter: Top 1 2 3 4 Bib Ind

generated by GAPDoc2HTML