[Networkit] Error for GMLReader

Christian Staudt christian.staudt at kit.edu
Tue Nov 17 21:23:13 CET 2015


I get this error when trying to read a GML file (attached). As always, the questions are: a) Is this a bug in the reader? b) Is this an invalid GML file? c) If b, should the reader behave in a strict or resilient way?

---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
/Users/cls/workspace/NetworKit/networkit/graphio.py in readGraph(path, fileformat, **kwargs)
    129                         try:
--> 130                                 G = reader.read(path)
    131                                 G.setName(os.path.basename(path).split(".")[0]) # set name of graph to name of file

_NetworKit.pyx in _NetworKit.GraphReader.read (networkit/_NetworKit.cpp:26034)()

RuntimeError: graph key not found

During handling of the above exception, another exception occurred:

OSError                                   Traceback (most recent call last)
<ipython-input-11-7962747ba933> in <module>()
----> 1 G = readGraph("/Users/cls/Downloads/dolphins/dolphins.gml", Format.GML)
      2 G.indexEdges()

/Users/cls/workspace/NetworKit/networkit/graphio.py in readGraph(path, fileformat, **kwargs)
    132                                 return G
    133                         except Exception as e:
--> 134                                 raise IOError("{0} is not a valid {1} file: {2}".format(path,fileformat,e))
    135         return None
    136

OSError: /Users/cls/Downloads/dolphins/dolphins.gml is not a valid Format.GML file: graph key not found


Best,
Chris


-------------- next part --------------
A non-text attachment was scrubbed...
Name: dolphins.gml
Type: application/octet-stream
Size: 9518 bytes
Desc: not available
URL: <https://lists.ira.uni-karlsruhe.de/mailman/private/networkit/attachments/20151117/e48744b1/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 495 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <https://lists.ira.uni-karlsruhe.de/mailman/private/networkit/attachments/20151117/e48744b1/attachment.sig>


More information about the NetworKit mailing list