nauty is a program for computing automorphism groups of graphs and digraphs. It can also produce a canonical labelling. WWW: http://cs.anu.edu.au/~bdm/nauty/