Ignore:
Timestamp:
May 19, 2017, 9:27:11 AM (8 years ago)
Author:
Frederik Heber <frederik.heber@…>
Branches:
ForceAnnealing_goodresults, ForceAnnealing_tocheck
Children:
adbeca
Parents:
6370f9
Message:

Extended BreadthFirstSearchGatherer to allow BFS with limited discovery horizon.

  • TESTS: extended unit test as well.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Graph/BoostGraphCreator.hpp

    r6370f9 r060fc3  
    3838
    3939public:
     40
    4041  //!> typedef for an undirected graph using boost::graph
    4142  typedef boost::adjacency_list < boost::vecS, boost::vecS, boost::undirectedS,
    42       boost::property<boost::vertex_name_t, atomId_t>, boost::no_property > UndirectedGraph;
     43      boost::property<boost::vertex_name_t, atomId_t>,
     44      boost::property<boost::vertex_color_t, boost::default_color_type> /* needed for limited-depth DFS,
     45      otherwise the property_map gets full size of graph */
     46  > UndirectedGraph;
     47
    4348  //!> typedef for a map of graph node indices
    4449  typedef boost::property_map < UndirectedGraph, boost::vertex_index_t >::type index_map_t;
Note: See TracChangeset for help on using the changeset viewer.