# Constructing graphs using permutation or symmetric groups

I'm trying to construct a graph whose vertices are the elements of a permutation group or a symmetric group. Whenever I do this, it ignores the identity element (). For instance, when I use the Symmetric Group S3, it prints a graph with 5 vertices and the missing vertex is the identity.

Any ideas on why this happening and how I can fix it?

Welcome to Ask Sage! Thank you for your question.

Please provide some code to let others reproduce the problem easily.

This dramatically increases the chances of an answer, the speed of getting an answer, and the accuracy with which the answers target the problem.