Let $\mathcal{G}$ be a groupoid and $p$ an object in $\mathcal{G}.$ It is well known that the set ${\rm Mor}_{\mathcal{G}}(p,p)$ is a group.
I would like to know if there is a way to recognize a group $G$ as a group of morphisms, that is:
Given a group $G,$ i want to find a connected groupoid $\mathcal{G}$ (different from $G$) and an object $p$ of $\mathcal{G}$ such that $G={\rm Mor}_{\mathcal{G}}(p,p).$
Thanks.
In fact a connected groupoid $G$ is uniquely determined by a group $G(x_0)$ and a tree groupoid $T$.
If you are given a tree $T$ and a group which we will denote $G(x_0)$ where $x_0$ is an object of $T$, then we can construct a groupoid $G=T* G(x_0)$ whose
Conversely, if a connected groupoid $G$ is given, then it has a wide (with all objects) tree subgroupoid $T$, and one can show that $G=T*G(x_0)$. The tree $T$ is constructed by fixing an object $x_0$, then choosing $\tau_x\in T(x_0,x)$ where $\tau_{x_0}=1$, and finally put $\tau_{xy}=\tau_y\tau_x^{-1}$.
Edit: What I've written may sound more complex than it actually is. A tree groupoid is actually determined by its set of objects alone. If $O$ is a set and $x_0$ an object in $O$, then there is a graph $\Gamma$ with one edge $τ_x$ from $x_0$ to every other object $x$. A graph always generates a free groupoid, and the free groupoid $F\Gamma$ consists of the elements $τ_x, τ^{-1}_x, τ_yτ^{-1}_x$. Clearly any tree groupoid $T$ with objects $O$ is just $F\Gamma$ with relabelled edges.
This emphasises that a connected groupoid is nothing more than a group $G$ and a set of objects.