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/unittests/BoostGraphCreatorUnitTest.cpp

    r0daef6 r1c0b0b  
    164164void BoostGraphCreatorTest::createFromAtomsTest()
    165165{
    166   std::vector<atom *> atoms;
     166  std::vector<const atom *> atoms;
    167167  std::copy(TestMolecule->begin(), TestMolecule->end(), std::back_inserter(atoms));
    168168  BGCreator->createFromAtoms(atoms, BreadthFirstSearchGatherer::AlwaysTruePredicate);
Note: See TracChangeset for help on using the changeset viewer.