Ask Your Question
0

Generalized Sierpinski graph method not working

asked 2022-05-30 12:47:13 +0100

vidyarthi gravatar image

I just saw the ticket here, which proposes to give the Generalized Sierpinski Graph. I also saw that it is committed in the GitHub repository. But, when I write graphs.GeneralizedSierpinskiGraph on the Jupyter notebook on CoCalc, it is not working and returning the error:graphs has no attribute called GeneralizedSierpinskiGraph. In addition, when saw the source code on the GitHub page, and when I copied and pasted it on my notebook, again the error is object of type'int' has no 'len()', which is referring to the line len(next(H.vertex_iterator())).

How do we modify this error? And will the method GeneralizedSierpinskiGraph work on Cocalc?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2022-05-30 13:02:01 +0100

tmonteil gravatar image

updated 2022-05-30 13:03:11 +0100

The reason is that this ticket is not merged in Sage (it is not even reviewed yet), so the function does not appear in production.

If you want to provide some feedback on the code, do not hesitate to create a trac account and discuss on the ticket that needs review.

edit flag offensive delete link more

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: 2022-05-30 12:47:13 +0100

Seen: 529 times

Last updated: May 30 '22