Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

CubeConnectedCycle not there? Attribute Error

In doc.sagemath.org/html/en/reference/graphs/sage/graphs/graph_generators.html#sage.graphs.graph_generators.GraphGenerators.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

CubeConnectedCycle not there? Attribute Error

In doc.sagemath.org/html/en/reference/graphs/sage/graphs/graph_generators.html#sage.graphs.graph_generators.GraphGenerators.CubeConnectedCycle the documentation for CubeConnectedCycle, it says

static CubeConnectedCycle(d).
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)

graphs.CubeConnectedCycle(d)

The error shown is "AttributeError: is

AttributeError: GraphGenerators instance has no attribute 'CubeConnectedCycle'"
'CubeConnectedCycle'

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

click to hide/show revision 3
retagged

CubeConnectedCycle not there? Attribute Error

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.