First time here? Check out the FAQ!
answered 8 years ago
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
Graph
class NewGraph(Graph):
and then adjust your indentation.