Skip to content

Unhelpful error in depthNumbering #4

@AndreasVoellmy

Description

@AndreasVoellmy

If you apply depthNumbering starting from a root vertex that is not in the graph, you get the error:

Data.Graph.Wrapper.fromList: one of the edges of a vertex pointed to a vertex that was not supplied in the input

This suggests that the problem is fromList. However, the problem is really caused by a call to indexGVertex in depthNumbering. fromList has nothing to do with the problem.

I'm not sure what the ideal resolution is... at the least, it might be good to not mention fromList in the error message.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions