Processing math: 100%

First time here? Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Automorphism group of weighted graph

I know we can use sage to find the group of automorphisms of a graph G:

G.automorphism_group().list()

However, the above way can only be used to the unweighted graph. So for example:

G = matrix([[0,10,0],
            [10,0,1],
            [0,1,0]])
G1 = Graph(G, weighted = True)
G1.show(edge_labels=True )  
G.automorphism_group().list()

The result is:

[(), (0,2)]

However, this result is not correct (correct for unweighted case). This is because ADDA, where

D=[001010100], which is a permutation matrix and

A=[01001001010], which is an adjacency matrix.

Can we use SAGE to find the group of automorphisms of a graph?

Automorphism group of weighted graph

I know we can use sage to find the group of automorphisms of a graph G:

G.automorphism_group().list()

However, the above way can only be used to the unweighted graph. So for example:

G = matrix([[0,10,0],
            [10,0,1],
            [0,1,0]])
G1 = Graph(G, weighted = True)
G1.show(edge_labels=True )  
G.automorphism_group().list()

The result is:

[(), (0,2)]

However, this result is not correct (correct for unweighted case). This is because ADDA, where

D=[001010100], which is a permutation matrix and

A=[01001001010], which is an adjacency matrix.

Can we use SAGE to find the group of automorphisms of a graph? graph?