Include jgrapht dependency to biojava-structure#352
Merged
Conversation
A new test for local symmetry
Member
Author
|
It was actually a bad idea to replace all the Lists for Sets, when only a single conversion was needed to call the jgrapht connectivity algorithm. I have undone some of the changes so that the tests for local symmetry introduced by @josemduarte pass in the last commit. |
josemduarte
added a commit
that referenced
this pull request
Nov 27, 2015
Include jgrapht dependency to biojava-structure
Contributor
|
Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
As it was discussed in #299, the BioJava implementations and algorithms for Graphs have been replaced by an external library: jgrapht.
The only code replaced is related to the Quaternary Symmetry detection. Tests pass and demos work as before, but @pwrose might want to take a look and check that the changes are conceptually correct.
As a summary, the ComponentFinder was checking if a SubunitGraph had more than one connected component. This is now done by using the ConnectivityInspector from jgrapht, that returns true if the graph is connected (one component) or not (more than one component). The constructor of the SubunitGraph is the same, and also the construction of a SubGraph given a set of vertices.
Merging this closes issue #319.