An implementation of an undirected friendship graph