ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Mon, 16 Jul 2018 11:57:13 +0200Number of graph automorphismshttps://ask.sagemath.org/question/43017/number-of-graph-automorphisms/ Using the below command in SAGE 8.2, the list of automorphisms for a graph could be attained.
G.automorphism_group().list()
What is the command for computing the number of graph automorphoisms?Sun, 15 Jul 2018 05:33:57 +0200https://ask.sagemath.org/question/43017/number-of-graph-automorphisms/Answer by tmonteil for <p>Using the below command in SAGE 8.2, the list of automorphisms for a graph could be attained.
G.automorphism_group().list()</p>
<p>What is the command for computing the number of graph automorphoisms?</p>
https://ask.sagemath.org/question/43017/number-of-graph-automorphisms/?answer=43018#post-id-43018If you give a name to your automorphism group:
sage: A = G.automorphism_group()
Then, you can see all methods that apply to it:
sage: A.<TAB>
where `<TAB>` stands for the tabulation key.
You can see that there is a `cardinality` method that answers your question:
sage: A.cardinality()
If you could not find such a method, you could always compute the length of the list you obtained:
sage: len(A.list())
Sun, 15 Jul 2018 11:17:19 +0200https://ask.sagemath.org/question/43017/number-of-graph-automorphisms/?answer=43018#post-id-43018Comment by ASH for <p>If you give a name to your automorphism group:</p>
<pre><code>sage: A = G.automorphism_group()
</code></pre>
<p>Then, you can see all methods that apply to it:</p>
<pre><code>sage: A.<TAB>
</code></pre>
<p>where <code><TAB></code> stands for the tabulation key.</p>
<p>You can see that there is a <code>cardinality</code> method that answers your question:</p>
<pre><code>sage: A.cardinality()
</code></pre>
<p>If you could not find such a method, you could always compute the length of the list you obtained:</p>
<pre><code>sage: len(A.list())
</code></pre>
https://ask.sagemath.org/question/43017/number-of-graph-automorphisms/?comment=43022#post-id-43022Thanks. It works.Sun, 15 Jul 2018 13:30:12 +0200https://ask.sagemath.org/question/43017/number-of-graph-automorphisms/?comment=43022#post-id-43022Comment by Iguananaut for <p>If you give a name to your automorphism group:</p>
<pre><code>sage: A = G.automorphism_group()
</code></pre>
<p>Then, you can see all methods that apply to it:</p>
<pre><code>sage: A.<TAB>
</code></pre>
<p>where <code><TAB></code> stands for the tabulation key.</p>
<p>You can see that there is a <code>cardinality</code> method that answers your question:</p>
<pre><code>sage: A.cardinality()
</code></pre>
<p>If you could not find such a method, you could always compute the length of the list you obtained:</p>
<pre><code>sage: len(A.list())
</code></pre>
https://ask.sagemath.org/question/43017/number-of-graph-automorphisms/?comment=43035#post-id-43035You can also enter `A?` to get full documentation on the group instance listing all the implemented methods.Mon, 16 Jul 2018 11:57:13 +0200https://ask.sagemath.org/question/43017/number-of-graph-automorphisms/?comment=43035#post-id-43035