Ask Your Question
1

CubeConnectedCycle not there? Attribute Error

asked 3 years ago

Anoop S K M gravatar image

updated 3 years ago

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.

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
1

answered 3 years ago

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 ?

Preview: (hide)
link

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 ( 3 years ago )

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: 3 years ago

Seen: 239 times

Last updated: May 08 '21