Hi,
When I try to read a graphml file an exception is thrown but cannot be
passed back to python through boost.python as no converter is registered.
I'm using SVN version 338 from
https://svn.osl.iu.edu/svn/projects_viz/bgl-python.
The output is:
c:\dev\python\boost\graph\__init__.py in read_graphml(filename)
624 """
625 try:
--> 626 graph = Digraph.read_graphml(filename)
627 except UndirectedGraphError:
628 graph = Graph.read_graphml(filename)
: No to_python (by-value) converter found
for C++ type: struct boost::graph_exception
If I just try the following:
bgl.Graph.read_graphml(filename)
I get something that might be a different symptom of the same problem:
: 'finally' pops bad exception
The graphml file is:
<?xml version="1.0" encoding="UTF-8"?>
<!-- Created by yFiles 2.4.2.2 -->
<graphml xmlns="http://graphml.graphdrawing.org/xmlns/graphml"
xmlns:y="http://www.yworks.com/xml/graphml"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns/graphml
http://www.yworks.com/xml/schema/graphml/1.0/ygraphml.xsd">
<key id="d0" for="node" yfiles.type="nodegraphics"/>
<key id="d1" for="edge" yfiles.type="edgegraphics"/>
<graph id="G" edgedefault="directed">
<node id="n0">
<data key="d0" >
</data>
</node>
<node id="n1">
<data key="d0" >
</data>
</node>
<edge id="e0" source="n0" target="n1">
<data key="d1" >
</data>
</edge>
</graph>
</graphml>
Thanks for a great library,
John.