-
Notifications
You must be signed in to change notification settings - Fork 103
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
TreeLayout only handles TreeLayout::RootSelectionType::Source #102
base: master
Are you sure you want to change the base?
Conversation
✅ Doxygen Documentation successfully built!
To edit notification comments on pull requests, go to your Netlify site configuration. |
7636605
to
449bed4
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested this "manually" by setting m_selectRoot = RootSelectionType::Sink
in TreeLayout::call()
directly and reversing the edges of the arborescences in graphs.h
via G.reverseAllEdges()
. When running test-misc --only=TreeLayout
, it did not crash but ran into an infinite while-loop. So to me it seems like this does not work at all, am I missing something?
The reason appears to be that the constructed TreeStructure
later also assumes that the graph is always an out-arborescence. So (at least) the checks in TreeStructure would also have to be changed.
doc/porting/unreleased.md
Outdated
|
||
#### A new parameter 'outTree' was added to isArborescence(...) and isArborescenceForest(...). | ||
By default it is set to true. | ||
If set to false, root nodes are handled as sinks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since the default behavior is the same, and thus people do not need to change their code because of this change, we do not need to add anything to the porting guide.
(Which also solves the problem that currently, line 5 would be a lie. 😄)
449bed4
to
5b712a5
Compare
Addresses issue #195 (314 on GitLab).
The layout may not be what one would expect but it does not crash anymore.
Adjusting the layout would require further work.