A small connected groupoid is such a category $G$ that:
- $\text{Ob}(G)$ is a nonempty set
- $\text{Hom}_G(a,b)$ is a nonempty set for all $a,b\in\text{Ob}(G)$
- $f$ is invertible for each $f\in\text{Hom}_G(a,b)$
One may show that $\text{Hom}_G(a,a)$ is a group and all such groups are isomorphic. This gives us the notion of fundamental group.
Can we prove that $G$ is uniquely (up to isomorphism) determined by $\text{Ob}(G)$ and its fundamental group?
Let $G$ be a connected groupoid. In particular, it is non-empty, so choose some object $a$. I claim that $G$ is isomorphic to the "trivial" groupoid $\mathrm{Ob}(G) \times \mathrm{Aut}(a)$ (where we regard $\mathrm{Ob}(G)$ as a discrete groupoid and the group $\mathrm{Aut}(a)$ as a groupoid with the single object $a$). In particular, $G$ is determined by the set $\mathrm{Ob}(G)$ and the group $\mathrm{Aut}(a)$.
In fact, choose isomorphisms $\gamma_b : a \to b$ for every $b \in \mathrm{Ob}(G)$. Define a functor $F : \mathrm{Ob}(G) \times \mathrm{Aut}(a) \to G$ on objects by $(b,a) \mapsto b$ and on morphisms by $(\mathrm{id} : b \to b,f : a \to a) \mapsto \gamma_b \circ f \circ \gamma_b^{-1}$. It is easy to check $F$ is indeed a functor. Also, $F$ is a bijection on objects (clear) and on morphisms since the conjugation $\mathrm{Aut}(a) \to \mathrm{Aut}(b)$ with $\gamma_a$ is inverse to the conjugation with $\gamma_a^{-1}$. Hence, $F$ is an isomorphism of categories.
Notice that this isomorphism is not canonical. It involves the choice of the isomorphisms $\gamma_b$.