boostorg/graph

read_graphml function rejecting well formed Graphml files

bhayat-quantinuum opened this issue · 1 comments

Here is a MWE of my code:

#include <iostream>
#include <fstream>
#include <boost/graph/graphml.hpp>
#include <boost/property_map/dynamic_property_map.hpp>

int main(int, char**){

    std::ifstream graph_file;
    graph_file.open("more_exampleHoles_8.txt", std::ifstream::in);

    Graph g;
    boost::dynamic_properties dp;
    boost::read_graphml(graph_file, g, dp);
}

The file more_exampleHoles_8.txt is attached below. I receive the following error:

terminate called after throwing an instance of 'boost::wrapexcept<boost::property_not_found>'
  what():  Property not found: betti.
Aborted (core dumped)

I think this is a bug? If not, any help appreciated.

more_exampleHoles_8.txt

Do you have something else that reads GraphML to compare against? I mean, how did you verify that it's well formed?