Ask Your Question

Revision history [back]

Looks like a Python error: class methods need to be indented under the class name.

You probably also want your new class to inherit from the base Graph class, so you would declare it like

 class NewGraph(Graph):

and then adjust your indentation.