Changeset a951f3
- Timestamp:
- Jun 21, 2018, 9:12:49 AM (7 years ago)
- 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)
- Location:
- src/FunctionApproximation
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/FunctionApproximation/Extractors.cpp
rd83d64 ra951f3 34 34 #include <config.h> 35 35 #endif 36 37 #include <boost/graph/adjacency_list.hpp>38 #include <boost/graph/breadth_first_search.hpp>39 #include <boost/graph/subgraph.hpp>40 36 41 37 //#include "CodePatterns/MemDebug.hpp" … … 48 44 #include <vector> 49 45 #include <boost/assign.hpp> 50 #include <boost/bimap.hpp>51 #include <boost/bimap/set_of.hpp>52 #include <boost/bimap/multiset_of.hpp>53 46 #include <boost/bind.hpp> 54 47 #include <boost/foreach.hpp> … … 311 304 * \param index_map with indices per \a graph' vertex 312 305 */ 313 void generateAllInducedConnectedSubgraphs(306 void Extractors::generateAllInducedConnectedSubgraphs( 314 307 const size_t N, 315 308 const level_t level, … … 415 408 } 416 409 417 HomologyGraph createHomologyGraphFromNodes(410 HomologyGraph Extractors::createHomologyGraphFromNodes( 418 411 const nodes_t &nodes, 419 412 const type_index_lookup_t &type_index_lookup, -
src/FunctionApproximation/Extractors.hpp
rd83d64 ra951f3 14 14 #endif 15 15 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> 16 22 #include <boost/function.hpp> 23 24 #include <map> 25 #include <set> 17 26 18 27 #include "Fragmentation/EdgesPerFragment.hpp" … … 56 65 typedef std::set<node_t> nodes_t; 57 66 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;59 67 60 68 typedef boost::bimap< … … 67 75 68 76 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; 70 81 typedef boost::subgraph< UndirectedGraph > UndirectedSubgraph; 82 83 typedef boost::property_map < UndirectedGraph, boost::vertex_index_t >::type index_map_t; 71 84 72 85 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.