Hello Everybody !!

I am currently writing a small patch to expose the write_graphml/gml
methods from the NetworkX library, and I noticed while testing he
docstrings that if write_gml worked perfectly, the read_gml was not
working at all (yes, I wrote the whole patch before actually trying to
use the method manually).

Here is the answer given by Sage in this case :

sage: networkx.read_gml(SAGE_TMP+"/g.gml")
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)

/home/ncohen/<ipython console> in <module>()

/home/ncohen/.Sage/local/lib/python/networkx/readwrite/gml.pyc in read_gml(path)
     69     """
     70     fh=_get_fh(path,mode='r')
---> 71     G=parse_gml(fh)
     72     return G
     73

/home/ncohen/.Sage/local/lib/python/networkx/readwrite/gml.pyc in
parse_gml(lines)
    117     except ImportError:
    118         raise ImportError, \
--> 119           "Import Error: not able to import pyparsing:
http://pyparsing.wikispaces.com/";
    120
    121     try:

ImportError: Import Error: not able to import pyparsing:
http://pyparsing.wikispaces.com/


This is clear enough. Well, I'd very much like to be able to
read/write graph files, if possible at no programming cost by adding
Pyparsing to Sage, though I do not think adding a new package just to
read/write graph files is really smart... Do you think this package
should/could be added, an that it could be used elsewhere ?

Thank you for your answers !!!

Nathann

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to