Skip to content

Fix a bug in the TarjanSCCVisitor regarding the stack ordering #35

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

Merged
merged 2 commits into from
Oct 13, 2019

Conversation

mmuesly
Copy link
Contributor

@mmuesly mmuesly commented Oct 7, 2019

While working with the automata lib, I came across another bug related to #21.

There are cases, where the sccId is not uniform for a single SCC at the end. Instead, the stack ordering is the most important thing. It is possible that a single SCC is constructed using more than one sccID on the stack. Luckily, it is possible to recreate the stack order in the visitor by sorting the records on the stack by the number attribute.

A new test case affected by this problem is added as part of this PR.

mmuesly and others added 2 commits October 7, 2019 15:34
* Instead of sorting the nodes when their exploration is finished, push them correctly onto the stack when starting their exploration.
* Fix a wrong accessor to the node's id.
@mtf90 mtf90 merged commit 9ad0aaf into LearnLib:develop Oct 13, 2019
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.

2 participants