Skip to content

Partial constraint on topologicalSort #6

Description

@no-longer-on-githu-b

If the graph contains cycles, then the behavior is undefined.

Should there be a Partial constraint?

An alternative is to make sure the function is total and then change the documentation to:

If the graph contains cycles, an unspecified value is returned.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: needs more infoThis issue needs more info before any action can be done.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions