* reference to a rooted binary species Phylogeny which might get
* stripped in the process, must have species names in the
* species name fields for all external nodes
+ * @throws SDIException
*/
- public SDIse( final Phylogeny gene_tree, final Phylogeny species_tree ) {
+ public SDIse( final Phylogeny gene_tree, final Phylogeny species_tree ) throws SDIException {
super( gene_tree, species_tree );
_duplications_sum = 0;
getSpeciesTree().preOrderReId();
private void calculateMforNode( final PhylogenyNode n ) {
if ( !n.isExternal() ) {
final boolean was_duplication = n.isDuplication();
- PhylogenyNode a = n.getChildNode1().getLink(), b = n.getChildNode2().getLink();
+ PhylogenyNode a = n.getChildNode1().getLink();
+ PhylogenyNode b = n.getChildNode2().getLink();
while ( a != b ) {
if ( a.getId() > b.getId() ) {
a = a.getParent();