Ignore:
Timestamp:
Jul 12, 2017, 7:10:32 PM (8 years ago)
Author:
Frederik Heber <frederik.heber@…>
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:
e0b960
Parents:
e3ec8a8
git-author:
Frederik Heber <frederik.heber@…> (05/19/17 14:28:28)
git-committer:
Frederik Heber <frederik.heber@…> (07/12/17 19:10:32)
Message:

BreadthFirstSearchGatherer::getDistances() added.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Graph/BreadthFirstSearchGatherer.cpp

    re3ec8a8 r966ce7  
    111111
    112112  // any node was discovered whose distances is less than num_vertices+1
     113  distance_map.clear();
    113114  const BoostGraphCreator::const_name_map_t name_map = boost::get(boost::vertex_name, BGgraph);
    114115  BoostGraphCreator::vertex_iter vp, vpend;
     
    117118    if (distances[v] != (num_vertices+1)) {
    118119      returnids.push_back( boost::get(name_map, v) );
     120      distance_map.insert( std::make_pair(boost::get(name_map, v), distances[v]) );
    119121    }
    120122  }
Note: See TracChangeset for help on using the changeset viewer.