Skip to content

Commit

Permalink
Merge pull request #304 from cdk/patch/wedge-methyl
Browse files Browse the repository at this point in the history
  • Loading branch information
egonw committed Apr 26, 2017
2 parents 6cba891 + c4aeb0e commit e238e1d
Showing 1 changed file with 6 additions and 0 deletions.
Expand Up @@ -501,6 +501,12 @@ boolean hasPriority(int focus, int i, int j) {
if (iElem == 6) iElem = 256;
if (jElem == 6) jElem = 256;

// terminal atoms are always best
if (iDegree == 1 && jDegree > 1)
return true;
if (jDegree == 1 && iDegree > 1)
return false;

// prioritise by atomic number, H < N < O < ... < C
if (iElem < jElem)
return true;
Expand Down

0 comments on commit e238e1d

Please sign in to comment.