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

xg segfaults building an index of an empty graph #53

Open
adamnovak opened this issue Feb 9, 2017 · 0 comments
Open

xg segfaults building an index of an empty graph #53

adamnovak opened this issue Feb 9, 2017 · 0 comments

Comments

@adamnovak
Copy link
Member

XG has some code like this in build():

    // for mapping of ids to ranks using a vector rather than wavelet tree
    min_id = node_label.begin()->first;
    max_id = node_label.rbegin()->first;

This is a problem if node_label is empty because the graph has no nodes, and can lead to a segfault.

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

1 participant