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

3 Function reference
 3.1 Public API
 3.2 Private functions

3 Function reference

3.1 Public API

3.1-1 ExploreGroup
‣ ExploreGroup( group[, options] )( function )

Returns: one of two things, documented below

If evaluated in a Jupyter Notebook, the result of this function, when rendered by that notebook, will run JavaScript code that imports into the output cell an instance of a page from the Group Explorer 3 web app for visualizing groups (using an iframe). How the group is displayed depends on the value of the second parameter, as documented below.

If evaluated in the GAP REPL, this function will open a new tab or window in the user's default browser, showing the page from the Group Explorer 3 web app described above.

Note that there are convenience functions defined below that call this one; the user can choose which style is their preference.

This routine works by delegating to the CreateVisualization function in the JupyterViz package, asking it to invoke the visualization scripts in viz-tool-group-explorer.js, installed by this package.

3.1-2 ExploreGroupHomomorphism
‣ ExploreGroupHomomorphism( homomorphism[, options] )( function )

Returns: one of two things, documented below

If evaluated in a Jupyter Notebook, the result of this function, when rendered by that notebook, will run JavaScript code that imports into the output cell an instance of a page from the Group Explorer 3 web app for visualizing group homomorphisms (using an iframe). How the homomorphism is displayed depends on the value of the second parameter, as documented below.

If evaluated in the GAP REPL, this function will open a new tab or window in the user's default browser, showing the page from the Group Explorer 3 web app described above.

Throughout the rest of the documentation below, I will use the term "domain" to refer to what GAP calls the Source of the homomorphism and the term "codomain" to refer to what GAP calls the Range of the homomorphism.

This routine works by delegating to the CreateVisualization function in the JupyterViz package, asking it to invoke the visualization scripts in viz-tool-group-explorer.js, installed by this package.

3.1-3 ExploreMultiplicationTable
‣ ExploreMultiplicationTable( group[, options] )( function )

Returns: one of two things, as in ExploreGroup (3.1-1)

This is a convenience function that invokes ExploreGroup (3.1-1), passing the appropriate tool option to ensure that the resulting visualization is a multiplication table.

3.1-4 ExploreCayleyDiagram
‣ ExploreCayleyDiagram( group[, options] )( function )

Returns: one of two things, as in ExploreGroup (3.1-1)

This is a convenience function that invokes ExploreGroup (3.1-1), passing the appropriate tool option to ensure that the resulting visualization is a Cayley graph.

This package also defines the synonym ExploreCayleyGraph for this function, because there are two common terms for the same concept.

3.1-5 ExploreCycleDiagram
‣ ExploreCycleDiagram( group[, options] )( function )

Returns: one of two things, as in ExploreGroup (3.1-1)

This is a convenience function that invokes ExploreGroup (3.1-1), passing the appropriate tool option to ensure that the resulting visualization is a cycle graph.

This package also defines the synonym ExploreCycleGraph for this function, because there are two common terms for the same concept.

3.2 Private functions

Clients of this package should not need to call functions in this section; they are used internally by the package, and are documented for the sake of completeness, and for anyone who maintains the package in the future.

3.2-1 GPEX_MakeMultTable
‣ GPEX_MakeMultTable( group )( function )

Returns: a list of lists of natural numbers, representing the group as a multiplication table

This function internally converts any group into the format just described, which is convertible into JSON for passing to Group Explorer. This way, regardless of whether the group in question exists in Group Explorer's library, or what name it is stored under, the correct group structure is communicated.

The user of this package should not need to call this function. It is used internally by ExploreGroup (3.1-1) to create the JSON data it passes to Group Explorer for visualization.

3.2-2 GPEX_SubsetIndices
‣ GPEX_SubsetIndices( subset, group )( function )

Returns: a list of natural numbers

This function internally converts any subset of a group into a list of indices into its parent group. The indices will match those used by GPEX_MakeMultTable (3.2-1), so that if the list is passed to Group Explorer, it can be interpreted as the correct subset by Group Explorer.

The user of this package should not need to call this function. It is used internally by ExploreGroup (3.1-1) to create the JSON data it passes to Group Explorer for visualization, in the case when a subset is indicated as one of the options passed to that function.

3.2-3 GPEX_PartitionIndexLists
‣ GPEX_PartitionIndexLists( partition, group )( function )

Returns: a list of lists of natural numbers

This function internally converts any partition of a group into a list of lists of indices into the group. The indices will match those used by GPEX_MakeMultTable (3.2-1), so that if the return value is passed to Group Explorer, it can be interpreted as a partition of the group by Group Explorer.

The user of this package should not need to call this function. It is used internally by ExploreGroup (3.1-1) to create the JSON data it passes to Group Explorer for visualization, in the case when a partition is indicated as one of the options passed to that function.

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

generated by GAPDoc2HTML