| 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.
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.