Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

read_graphml function rejecting well formed Graphml files #369

Open
bhayat-quantinuum opened this issue Apr 4, 2024 · 1 comment
Open
Assignees

Comments

@bhayat-quantinuum
Copy link

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

@jeremy-murphy jeremy-murphy self-assigned this Apr 4, 2024
@jeremy-murphy
Copy link
Contributor

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

@jeremy-murphy jeremy-murphy added the security Potential security bug label Apr 13, 2024
@jeremy-murphy jeremy-murphy removed the security Potential security bug label Apr 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants