Changeset e0b960 for src/Graph/BoostGraphCreator.hpp
- Timestamp:
- Jul 12, 2017, 7:10:32 PM (8 years ago)
- Branches:
- Action_Thermostats, Adding_Graph_to_ChangeBondActions, Adding_MD_integration_tests, Adding_StructOpt_integration_tests, AutomationFragmentation_failures, Candidate_v1.6.1, ChemicalSpaceEvaluator, Enhanced_StructuralOptimization, Enhanced_StructuralOptimization_continued, Exclude_Hydrogens_annealWithBondGraph, Fix_Verbose_Codepatterns, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_continued, ForceAnnealing_with_BondGraph_continued_betteresults, ForceAnnealing_with_BondGraph_contraction-expansion, Gui_displays_atomic_force_velocity, JobMarket_RobustOnKillsSegFaults, JobMarket_StableWorkerPool, PythonUI_with_named_parameters, Recreated_GuiChecks, StoppableMakroAction, TremoloParser_IncreasedPrecision
- Children:
- 4a6ef3
- Parents:
- 966ce7
- git-author:
- Frederik Heber <frederik.heber@…> (05/19/17 13:13:41)
- git-committer:
- Frederik Heber <frederik.heber@…> (07/12/17 19:10:32)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Graph/BoostGraphCreator.hpp
r966ce7 re0b960 61 61 //!> typedef for vertex iterator 62 62 typedef boost::graph_traits<UndirectedGraph>::vertex_iterator vertex_iter; 63 //!> typedef for a Edge 64 typedef boost::graph_traits<UndirectedGraph>::edge_descriptor Edge; 65 //!> typedef for edge iterator 66 typedef boost::graph_traits<UndirectedGraph>::edge_iterator edge_iter; 63 67 64 68 //!> typedef for a node id … … 145 149 ); 146 150 151 /** Finds a given edge by its two atomic indices. 152 * 153 * \param _firstid first atomic id of edge 154 * \param _secondid second atomic id of edge 155 * \return edge descriptor in graph or empty descriptor 156 */ 157 Edge findEdge(const atomId_t &_firstid, const atomId_t &_secondid); 158 159 /** Allows to remove a present edge in the graph. 160 * 161 * \param _firstid first atomic id of edge 162 * \param _secondid second atomic id of edge 163 * \return true - edge found and removed, false - else 164 */ 165 bool removeEdge(const atomId_t &_firstid, const atomId_t &_secondid); 166 167 /** Adds an edge to the graph if not already present. 168 * 169 * \param _firstid first atomic id of edge 170 * \param _secondid second atomic id of edge 171 * \return true - edge not found thus added, false - else 172 */ 173 bool addEdge(const atomId_t &_firstid, const atomId_t &_secondid); 174 147 175 private: 148 176 //!> internal graph that is created by creator functions
Note:
See TracChangeset
for help on using the changeset viewer.