Changeset a951f3


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.

Location:
src/FunctionApproximation
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/FunctionApproximation/Extractors.cpp

    rd83d64 ra951f3  
    3434#include <config.h>
    3535#endif
    36 
    37 #include <boost/graph/adjacency_list.hpp>
    38 #include <boost/graph/breadth_first_search.hpp>
    39 #include <boost/graph/subgraph.hpp>
    4036
    4137//#include "CodePatterns/MemDebug.hpp"
     
    4844#include <vector>
    4945#include <boost/assign.hpp>
    50 #include <boost/bimap.hpp>
    51 #include <boost/bimap/set_of.hpp>
    52 #include <boost/bimap/multiset_of.hpp>
    5346#include <boost/bind.hpp>
    5447#include <boost/foreach.hpp>
     
    311304 * \param index_map with indices per \a graph' vertex
    312305 */
    313 void generateAllInducedConnectedSubgraphs(
     306void Extractors::generateAllInducedConnectedSubgraphs(
    314307    const size_t N,
    315308    const level_t level,
     
    415408}
    416409
    417 HomologyGraph createHomologyGraphFromNodes(
     410HomologyGraph Extractors::createHomologyGraphFromNodes(
    418411    const nodes_t &nodes,
    419412    const type_index_lookup_t &type_index_lookup,
  • 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.