Ignore:
Timestamp:
Jun 21, 2018, 9:12:49 AM (7 years ago)
Author:
Frederik Heber <frederik.heber@…>
Children:
7f17c7
Parents:
d83d64
git-author:
Frederik Heber <frederik.heber@…> (09/27/17 21:55:19)
git-committer:
Frederik Heber <frederik.heber@…> (06/21/18 09:12:49)
Message:

Added visible generateAllInducedSubgraphs to Extractors.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/FunctionApproximation/Extractors.hpp

    rd83d64 ra951f3  
    1414#endif
    1515
     16#include <boost/bimap.hpp>
     17#include <boost/bimap/set_of.hpp>
     18#include <boost/bimap/multiset_of.hpp>
     19#include <boost/graph/adjacency_list.hpp>
     20#include <boost/graph/breadth_first_search.hpp>
     21#include <boost/graph/subgraph.hpp>
    1622#include <boost/function.hpp>
     23
     24#include <map>
     25#include <set>
    1726
    1827#include "Fragmentation/EdgesPerFragment.hpp"
     
    5665  typedef std::set<node_t> nodes_t;
    5766  typedef std::set<nodes_t> set_of_nodes_t;
    58   typedef boost::property_map < boost::adjacency_list <>, boost::vertex_index_t >::type index_map_t;
    5967
    6068  typedef boost::bimap<
     
    6775
    6876  typedef boost::adjacency_list < boost::vecS, boost::vecS, boost::undirectedS,
    69       boost::no_property, boost::no_property > UndirectedGraph;
     77      boost::property<boost::vertex_name_t, atomId_t>,
     78      boost::property<boost::vertex_color_t, boost::default_color_type> /* needed for limited-depth DFS,
     79      otherwise the property_map gets full size of graph */
     80      > UndirectedGraph;
    7081  typedef boost::subgraph< UndirectedGraph > UndirectedSubgraph;
     82
     83  typedef boost::property_map < UndirectedGraph, boost::vertex_index_t >::type index_map_t;
    7184
    7285  typedef std::map< node_t, std::pair<Extractors::ParticleType_t, size_t> > node_FragmentNode_map_t;
Note: See TracChangeset for help on using the changeset viewer.