Skip to content

Fix TopologicalIndex#553

Merged
mtdowling merged 1 commit intomasterfrom
fix-topologic-index
Sep 3, 2020
Merged

Fix TopologicalIndex#553
mtdowling merged 1 commit intomasterfrom
fix-topologic-index

Conversation

@mtdowling
Copy link
Copy Markdown
Member

This commit fixes a bug in TopologicalIndex where some forms of
recursion weren't detected, which resulted in a stack overflow. This was
because directly recursive shapes were found, but transitively recursive
shapes were not (shapes that are recursive on themselves, but enter into
a cycle because they reference recursive shapes). To address this,
TopologicalIndex was rewritten to just implement a DFS rather than try
to reuse PathFinder.

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@mtdowling mtdowling requested a review from kstich September 3, 2020 05:10
This commit fixes a bug in TopologicalIndex where some forms of
recursion weren't detected, which resulted in a stack overflow. This was
because directly recursive shapes were found, but transitively recursive
shapes were not (shapes that are recursive on themselves, but enter into
a cycle because they reference recursive shapes). To address this,
TopologicalIndex was rewritten to just implement a DFS rather than try
to reuse PathFinder.
@mtdowling mtdowling requested a review from kstich September 3, 2020 18:01
@mtdowling mtdowling merged commit d8eb214 into master Sep 3, 2020
@mtdowling mtdowling deleted the fix-topologic-index branch September 14, 2020 22:49
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

Successfully merging this pull request may close these issues.

3 participants