Graph Isomorphism - class partitions