Jens Müller schrieb:
Tiago de Paula Peixoto schrieb:
The reader will always try to put a property it finds in the file in the dynamic_properties you pass to it. If the property doesn't exist already, it is up to the dynamic_property object to create it or not. By default it throws an exception, instead of creating. You need to supply it with a function in the constructor that will create it automatically. Take a look at:
http://www.boost.org/libs/property_map/doc/dynamic_property_map.html#member-...
Sorry, yeah ... I think we got that topic already ... Nevertheless, I don't understand the fundamental differences of your GraphML files and mine that would make the reader do strange things, like not adding vertices ...
OK, it was due to the strange namespace declaration in my files: Yours: <graphml xmlns="http://graphml.graphdrawing.org/xmlns" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns http://graphml.graphdrawing.org/xmlns/1.0/graphml.xsd"> Mine: <graphml xmlns="http://graphml.graphdrawing.org/xmlns/1.0rc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://graphml.graphdrawing.org/xmlns/1.0rc graphml-structure-1.0rc.xsd http://graphml.graphdrawing.org/xmlns/1.0rc graphml-attributes-1.0rc.xsd"
Sorry for the bother ... With your version, it works fine.