Ask Your Question
1

CubeConnectedCycle not there? Attribute Error

asked 2021-05-08 06:29:01 +0200

Anoop S K M gravatar image

updated 2021-07-27 10:17:55 +0200

FrédéricC gravatar image

In the documentation for CubeConnectedCycle, it says

static CubeConnectedCycle(d)

But when I try to run the following example given in the same page above it is giving an error.

d = 3
g = graphs.CubeConnectedCycle(d)

The error shown is

AttributeError: GraphGenerators instance has no attribute 'CubeConnectedCycle'

Can someone tell me what went wrong? Thanks in advance.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2021-05-08 10:54:45 +0200

tmonteil gravatar image

I can not reproduce it, on my installation i get:

sage: d = 3                                                                                                                                                                                                  
sage: g = graphs.CubeConnectedCycle(d)                                                                                                                                                                       
sage: g                                                                                                                                                                                                      
Cube-Connected Cycle of dimension 3: Graph on 24 vertices

It seems that this generator was introduced in Sage 9.1, see https://trac.sagemath.org/ticket/21423

Which version are you using ?

edit flag offensive delete link more

Comments

I was using 9.0. I installed 9.2 now and is working well. Thanks a lot!

Anoop S K M gravatar imageAnoop S K M ( 2021-05-08 12:25:35 +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

1 follower

Stats

Asked: 2021-05-08 06:29:01 +0200

Seen: 166 times

Last updated: May 08 '21