09.02.2015 Views

Sage Reference Manual: Graph Theory - Mirrors

Sage Reference Manual: Graph Theory - Mirrors

Sage Reference Manual: Graph Theory - Mirrors

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Sage</strong> <strong>Reference</strong> <strong>Manual</strong>: <strong>Graph</strong> <strong>Theory</strong>, Release 6.1.1<br />

sage: graphs.RandomGNP(20,0.5).antisymmetric()<br />

False<br />

sage: digraphs.RandomDirectedGNR(20,0.5).antisymmetric()<br />

True<br />

automorphism_group(partition=None, verbosity=0, edge_labels=False, order=False, return_group=True,<br />

orbits=False)<br />

Returns the largest subgroup of the automorphism group of the (di)graph whose orbit partition is finer than<br />

the partition given. If no partition is given, the unit partition is used and the entire automorphism group is<br />

given.<br />

INPUT:<br />

•partition - default is the unit partition, otherwise computes the subgroup of the full automorphism<br />

group respecting the partition.<br />

•edge_labels - default False, otherwise allows only permutations respecting edge labels.<br />

•order - (default False) if True, compute the order of the automorphism group<br />

•return_group - default True<br />

•orbits - returns the orbits of the group acting on the vertices of the graph<br />

Warning: Since trac ticket #14319 the domain of the automorphism group is equal to the graph’s<br />

vertex set, and the translation argument has become useless.<br />

OUTPUT: The order of the output is group, order, orbits. However, there are options to turn each of these<br />

on or off.<br />

EXAMPLES:<br />

<strong>Graph</strong>s:<br />

sage: graphs_query = <strong>Graph</strong>Query(display_cols=[’graph6’],num_vertices=4)<br />

sage: L = graphs_query.get_graphs_list()<br />

sage: graphs_list.show_graphs(L)<br />

sage: for g in L:<br />

... G = g.automorphism_group()<br />

... G.order(), G.gens()<br />

(24, [(2,3), (1,2), (0,1)])<br />

(4, [(2,3), (0,1)])<br />

(2, [(1,2)])<br />

(6, [(1,2), (0,1)])<br />

(6, [(2,3), (1,2)])<br />

(8, [(1,2), (0,1)(2,3)])<br />

(2, [(0,1)(2,3)])<br />

(2, [(1,2)])<br />

(8, [(2,3), (0,1), (0,2)(1,3)])<br />

(4, [(2,3), (0,1)])<br />

(24, [(2,3), (1,2), (0,1)])<br />

sage: C = graphs.Cube<strong>Graph</strong>(4)<br />

sage: G = C.automorphism_group()<br />

sage: M = G.character_table() # random order of rows, thus abs() below<br />

sage: QQ(M.determinant()).abs()<br />

712483534798848<br />

sage: G.order()<br />

384<br />

1.1. Generic graphs 15

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!