Python: added Graph.canonical_permutation()