Changeset 08df4a for src/Graph


Ignore:
Timestamp:
Aug 14, 2017, 8:12:49 AM (8 years ago)
Author:
Frederik Heber <frederik.heber@…>
Branches:
ForceAnnealing_with_BondGraph_continued
Children:
a6574a
Parents:
0cc08c
git-author:
Frederik Heber <frederik.heber@…> (08/10/17 15:35:45)
git-committer:
Frederik Heber <frederik.heber@…> (08/14/17 08:12:49)
Message:

Rewrote annealWithBondGraph_BarzilaiBorwein() to simply distinguish expansion and contraction in bonds.

  • we shift the neighboring set away in case of expansion and towards in case of contraction.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Graph/BoostGraphCreator.hpp

    r0cc08c r08df4a  
    165165  bool removeEdge(const atomId_t &_firstid, const atomId_t &_secondid);
    166166
     167  /** Allows to remove a present edge in the graph.
     168   *
     169   * \param _bondids pair of bond ids
     170   * \return true - edge found and removed, false - else
     171   */
     172  bool removeEdge(const std::pair<atomId_t, atomId_t> &_bondids)
     173  { return removeEdge(_bondids.first, _bondids.second); }
     174
    167175  /** Adds an edge to the graph if not already present.
    168176   *
     
    172180   */
    173181  bool addEdge(const atomId_t &_firstid, const atomId_t &_secondid);
     182
     183  /** Adds an edge to the graph if not already present.
     184   *
     185   * \param _bondids pair of bond ids
     186   * \return true - edge not found thus added, false - else
     187   */
     188  bool addEdge(const std::pair<atomId_t, atomId_t> &_bondids)
     189  { return addEdge(_bondids.first, _bondids.second); }
    174190
    175191private:
Note: See TracChangeset for help on using the changeset viewer.