The main use of nauty is to determine if two graphs are isomorphic. We can demonstrate it for two given graphs with the method areIsomorphic.



Further, a list of graphs can be reduced to only graphs that are nonisomorphic with the method removeIsomorphs. Here we create a list of 120 different labellings of the 5cycle and use nauty to verify they are indeed all the same.


