GAP:DirectedPowerGraph

From Groupprops
Revision as of 00:02, 5 September 2010 by Vipul (talk | contribs) (Created page with "{{GAP function| argtype = group| output = graph}} ==Definition== ===Function type=== The function takes as input a group (supposed to be a finite group) and outputs a ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This article is about a GAP function.

This GAP function takes as input a group. See more functions like this.

Definition

Function type

The function takes as input a group (supposed to be a finite group) and outputs a graph.

Behavior

The graph output is isomorphic to the directed power graph of the group.

Packages used

The function definition requires the Grape package. If this package is installed but not loaded, it can be loaded using:

LoadPackage("grape")

Method

Code

DirectedPowerGraph := function(G)
        local L,o,f;
        o := Order(G);
        L := AsList(Set(G));
        f := function(x,y)
                return(IsSubgroup(Group(L[x]),Group(L[y])));
        end;;
        return(Graph(TrivialSubgroup(SymmetricGroup(o)),[1..o],OnPoints,f,true)\
);