Ignore:
Timestamp:
Oct 23, 2022, 9:08:55 AM (3 years ago)
Author:
Frederik Heber <frederik.heber@…>
Branches:
Candidate_v1.7.0, stable
Children:
894040
Parents:
0daef6
git-author:
Frederik Heber <frederik.heber@…> (10/19/22 19:38:02)
git-committer:
Frederik Heber <frederik.heber@…> (10/23/22 09:08:55)
Message:

Graph6Writer::write_elementlist uses BFS from boundary atom.

  • the elementlist is not stable as the set of atoms is arbitrary to any kind of permutation. However, the underlying bond graph is not, even though it may also have some symmetries.
  • Therefore, we use a BFS from a non-hydrogen atom on the boundary.
  • FIX: BoosGraphCreator gets vector of const atom*.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Graph/BoostGraphCreator.cpp

    r0daef6 r1c0b0b  
    7575
    7676void BoostGraphCreator::createFromAtoms(
    77     const std::vector<atom *> &_atoms,
     77    const std::vector<const atom *> &_atoms,
    7878    const predicate_t &_pred)
    7979{
     
    8888  std::sort(atomids.begin(), atomids.end());
    8989  const predicate_t predicate = boost::bind(inSetPredicate, boost::ref(atomids), _1);
    90   createFromRange<std::vector<atom *>::const_iterator>(
    91       const_cast<const std::vector<atom *> &>(_atoms).begin(),
    92       const_cast<const std::vector<atom *> &>(_atoms).end(),
     90  createFromRange<std::vector<const atom *>::const_iterator>(
     91      const_cast<const std::vector<const atom *> &>(_atoms).begin(),
     92      const_cast<const std::vector<const atom *> &>(_atoms).end(),
    9393      _atoms.size(),
    9494      boost::bind(predicateAnd, _pred, predicate, _1));
Note: See TracChangeset for help on using the changeset viewer.