Skip to content

Python graph DFS can exceed recursion limit at 2,000 nodes #5934

Description

@dajiaohuang

The Python depth-first implementation recursively follows a component. The constraints allow a 2,000-node path, exceeding the default interpreter recursion limit. Use an explicit stack for this DFS variant.

No activity

Activity on this issue will appear here.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions