Ask Your Question

Revision history [back]

The documentation of graphs.SierpinskiGasketGraph, which you can get with:

sage: graphs.SierpinskiGasketGraph?

tells that some generalization with two parameters can be found as graphs.HanoiTowerGraph.

If it is not what you are looking for, you can get the source code for the construction of (ungeneralized) Sierpinski gasket graphs, and try to generalize it with:

sage: graphs.SierpinskiGasketGraph??