Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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.