Hi William, thank you very much. writeg6() was exactly what I needed (I already knew the rest). Hi Keith, what I need are programs that handle huge amounts of data very quickly. Before I heard about nauty, I had already written programs that do almost everything with graphs but Brendan McKay makes much faster programs.