Skip to content

read_graphml function rejecting well formed Graphml files #369

Open
@bhayat-quantinuum

Description

@bhayat-quantinuum

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions