Skip to content
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

Patch buildComponent in eles.htbc() #2622

Merged
merged 1 commit into from
Feb 7, 2020
Merged

Conversation

r-ba
Copy link
Contributor

@r-ba r-ba commented Feb 6, 2020

In the current implementation of the buildComponent function within eles.htbc() there is a flaw such that, for certain graphs, a singular edge (or multiple, counting loops) will be omitted from a components collection during it's respective construction. A minimal reproducible example of this behaviour can be seen here. The intent of this PR is to amend this issue.

- For certain graph structures, it is possible for a single edge (or multiple, counting loops) to be omitted from a component during it's construction. This ensures that components are reconstructed in their entirety.
- Add test case which fails without newest modification
- Additional clean up
- Rename `eles.hopcroftTarjan()` to `eles.htbc()` in documentation
@maxkfranz maxkfranz added this to the 3.13.1 milestone Feb 7, 2020
@maxkfranz maxkfranz added the bug A bug in the code of Cytoscape.js label Feb 7, 2020
@maxkfranz maxkfranz merged commit 023f29a into cytoscape:unstable Feb 7, 2020
maxkfranz pushed a commit that referenced this pull request Feb 7, 2020
- For certain graph structures, it is possible for a single edge (or multiple, counting loops) to be omitted from a component during it's construction. This ensures that components are reconstructed in their entirety.
- Add test case which fails without newest modification
- Additional clean up
- Rename `eles.hopcroftTarjan()` to `eles.htbc()` in documentation

Ref :  #2622
@maxkfranz
Copy link
Member

Merged in for 3.13.1

Thanks

@r-ba r-ba deleted the htbc-patch branch February 7, 2020 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bug in the code of Cytoscape.js
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants