Mercurial > hg > WSGraph
diff wsgraph/model.py @ 28:4bed1424bb3f
more notes to self
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Wed, 12 Dec 2012 18:58:08 -0800 |
parents | d1a8c1436ded |
children | 5f14a4183bf2 |
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:]):