---
title: "Conversion Functions"
canonical: "https://docs.magma-maths.org/v2.30-1/Geometry/IncidenceGeometry/conversion-functions.html"
source: "https://docs.magma-maths.org/v2.30-1/Geometry/IncidenceGeometry/conversion-functions.md"
part: "Geometry"
chapter: "Incidence Geometry"
breadcrumbs:
  - {"title": "Magma Handbook", "source": "https://docs.magma-maths.org/v2.30-1/index.md"}
  - {"title": "Geometry", "source": "https://docs.magma-maths.org/v2.30-1/Geometry/index-geometry.md"}
  - {"title": "Incidence Geometry", "source": "https://docs.magma-maths.org/v2.30-1/Geometry/IncidenceGeometry/index-incidence-geometry.md"}
prev: {"title": "Elementary Invariants", "source": "https://docs.magma-maths.org/v2.30-1/Geometry/IncidenceGeometry/access.md"}
next: {"title": "Residues", "source": "https://docs.magma-maths.org/v2.30-1/Geometry/IncidenceGeometry/residues.md"}
intrinsics:
  - {"name": "IncidenceGeometry", "signature": "IncidenceGeometry(C): CosetGeom -> IncGeom"}
  - {"name": "CosetGeometry", "signature": "CosetGeometry(D): IncGeom -> BoolElt, CosetGeom"}
  - {"name": "Graph", "signature": "Graph(D): IncGeom -> GrphUnd"}
  - {"name": "Graph", "signature": "Graph(C): CosetGeom -> GrphUnd"}
examples:
  - "ex-cfd076"
---

# Conversion Functions

In this section we describe the functions that are available to convert incidence geometries and coset geometries in other objects.

<a id="function-incidencegeometry-cosetgeom"></a>
## `IncidenceGeometry(C): CosetGeom -> IncGeom`

Construct the incidence geometry $IG$ from the coset geometry $C$. This is done using Tits’ algorithm described in the introduction of this chapter . The function returns one value: the incidence geometry $IG$.

<a id="function-cosetgeometry-incgeom"></a>
## `CosetGeometry(D): IncGeom -> BoolElt, CosetGeom`

Convert the incidence geometry $D$ into a coset geometry.

If $D$ is an incidence geometry that can be converted into a coset geometry, the coset geometry isomorphic to it is constructed in the following way. The group $G$ of the coset geometry $CG$ is the automorphism group of $D$. Magma determines a chamber $C$ of $D$, that is a clique of the incidence graph of $D$ containing one element of each type. To every element $x$ in $C$, Magma associates a subgroup $G_x$ which is the stabilizer of $x$ in $G$. The subgroups $(G_x, x \in C)$ are the maximal parabolic subgroups of $CG$. In order to obtain a coset geometry combinatorially isomorphic to the incidence geometry we started with, the group $G$ must be transitive on every rank two truncation of $D$. If this condition is satisfied, the function returns a boolean set to the value `true` and the coset geometry $CG$. Otherwise, the function returns `false`.

<a id="function-graph-incgeom"></a>
## `Graph(D): IncGeom -> GrphUnd`

If `IsGraph(D)` returns `true`, this function construct the undirected graph corresponding to the incidence geometry $D$.

<a id="function-graph-cosetgeom"></a>
## `Graph(C): CosetGeom -> GrphUnd`

If `IsGraph(C)` returns `true`, this function construct the undirected graph corresponding to the coset geometry $C$.

<a id="example-ex-cfd076"></a>
## `Example: Neumaier Geometry as a Coset Geometry (ex-cfd076)`

Taking back the last example for incidence geometries, we can convert the Neumaier geometry into a coset geometry by typing the following command (`neumaier` is the Neumaier geometry constructed above):

```magma
> ok,cg := CosetGeometry(neumaier);
> ok;
true
```

This means the conversion has been done successfully. So $cg$ is the coset geometry corresponding to `neumaier`.

```magma
> cg;
Coset geometry cg with 4 types
Group:
Permutation group acting on a set of cardinality 200
Order = 126000 = 2^4 * 3^2 * 5^3 * 7

Maximal Parabolic Subgroups:
Permutation group acting on a set of cardinality 200
Order = 2520 = 2^3 * 3^2 * 5 * 7
Permutation group acting on a set of cardinality 200
Order = 2520 = 2^3 * 3^2 * 5 * 7
Permutation group acting on a set of cardinality 200
Order = 2520 = 2^3 * 3^2 * 5 * 7
Permutation group acting on a set of cardinality 200
Order = 2520 = 2^3 * 3^2 * 5 * 7

Type Set:
{@ 1, 2, 3, 4 @}
```
