Ask Your Question
0

automorphism group of graphs

asked 2013-12-20 08:12:04 +0200

AG gravatar image

When I create a graph in SAGE and then look at its automorphism group, the permutation group obtained acts on points $1,\ldots, n$ (where $n$ is the number of vertices of the graph), but it is not clear to me what the correspondence is between the vertices of the graph and these points. For example the code and output

sage: X=Graph(); X.add_edges([(0,1),(0,2)]); 
sage: X.automorphism_group().list()
[(), (1,2)]

suggests that the vertices 0, 1 and 2 correspond to points 3, 1 and 2, respectively. Similarly,

sage: X=Graph(); X.add_edges([(0,1),(1,2)]); 
sage: X.automorphism_group().list()
[(), (2,3)]

also suggests that vertex name 1 corresponds to point 1. The example

sage: X=Graph(); X.add_edges([('a','b'),('b','c')]);                      
sage: X.automorphism_group().list()
[(), (2,3)]

suggests that vertex name 'b' corresponds to the point 1, and 'a' and 'c' correspond to 2 and 3, respectively.

I was wondering in general what the correspondence is between the vertex labels and the positive integer points that the automorphism group of the graph acts on, especially when the vertex names are not integers but arbitrary (letters or permutations), as in the latter example given above. This correspondence can be determined for small graphs by inspection, but I was wondering what the correspondence is in general.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2013-12-20 08:36:54 +0200

fidbc gravatar image

What version of sage are you using? It seems that in sage 5.13 that is no longer an issue.

sage: g=graphs.CubeGraph(2)
sage: g.automorphism_group()
Permutation Group with generators [('01','10'), ('00','01')('10','11')]

According to the current code in the automorphism_group method, it seems that the labelling is according to the order given by the vertices method (provided you do not specify a partition as argument).

edit flag offensive delete link more

Comments

I'm using version 5.3

AG gravatar imageAG ( 2013-12-20 08:57:21 +0200 )edit

It was solved 7 months ago. http://trac.sagemath.org/ticket/14319. Really you should upgrade your version of Sage, many nice things have been included/fixed since ! ;-)

Nathann gravatar imageNathann ( 2013-12-20 11:26:33 +0200 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2013-12-20 08:12:04 +0200

Seen: 2,902 times

Last updated: Dec 20 '13