nauty is a program for computing automorphism groups of graphs and digraphs.
It can also produce a canonical labelling.