Computer perception of topological symmetry via canonical numbering of atoms