Mercurial > hg > WSGraph
changeset 28:4bed1424bb3f
more notes to self
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Wed, 12 Dec 2012 18:58:08 -0800 |
parents | 9e173648d848 |
children | 2e4ed8e0a103 |
files | wsgraph/model.py |
diffstat | 1 files changed, 9 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/wsgraph/model.py Wed Dec 12 18:54:59 2012 -0800 +++ b/wsgraph/model.py Wed Dec 12 18:58:08 2012 -0800 @@ -1,8 +1,16 @@ + +import sys from abc import abstractmethod from copy import deepcopy from utils import isiterable class Graph(object): + """ + abstract base class for WSGraph model of a graph + + WSGraph is interacted with by implementing + wsgraph.model.Graph object for a desired interface + """ @abstractmethod def node(self, name, **values): @@ -109,4 +117,4 @@ raise NotImplementedError # TODO: CLI entry point to convert from one model to another -# def main() +# def main(args=sys.argv[1:]):