gggp.hpp 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. /**
  2. * @file tests/boost_graph/partitioning/gggp.hpp
  3. * @author The PARADEVS Development Team
  4. * See the AUTHORS or Authors.txt file
  5. */
  6. /*
  7. * PARADEVS - the multimodeling and simulation environment
  8. * This file is a part of the PARADEVS environment
  9. *
  10. * Copyright (C) 2013 ULCO http://www.univ-litoral.fr
  11. *
  12. * This program is free software: you can redistribute it and/or modify
  13. * it under the terms of the GNU General Public License as published by
  14. * the Free Software Foundation, either version 3 of the License, or
  15. * (at your option) any later version.
  16. *
  17. * This program is distributed in the hope that it will be useful,
  18. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  19. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20. * GNU General Public License for more details.
  21. *
  22. * You should have received a copy of the GNU General Public License
  23. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  24. */
  25. #ifndef TESTS_BOOST_GRAPH_PARTITIONING_GGGP_H
  26. #define TESTS_BOOST_GRAPH_PARTITIONING_GGGP_H 1
  27. #include <tests/boost_graph/partitioning/utils.hpp>
  28. #include <boost/graph/copy.hpp>
  29. namespace paradevs { namespace tests { namespace boost_graph {
  30. void ggp(UnorientedGraph *g, Entiers *sommetsSource,
  31. Entiers *sommetsDestination, EntiersEntiers &Partition, int rand , int &index_partition, int distance);
  32. void gggp_pond(UnorientedGraph *g, Entiers *sommetsSource,
  33. Entiers *sommetsDestination, EntiersEntiers &Partition, int rand, int &index_partition, const std::string &name , int distance);
  34. void Iter_2l(EntiersEntiers &part, int nbr_parties, UnorientedGraph *g,
  35. const std::string &nom_cut, int nbr_tirage, const std::string &nom_strat, int distance = -1);
  36. void bissectionRec(UnorientedGraph *g, EntiersEntiers &Partition,
  37. int nbr_parties, const std::string &nom_cut, int nbr_tirage, const std::string &nom_strat, int distance = -1);
  38. void Pseudo_random_partitioning(UnorientedGraph *g, EntiersEntiers &Partition,
  39. uint nbr_parties);
  40. EntiersEntiers Random_partitioning(UnorientedGraph *g,
  41. uint nbr_parties);
  42. OrientedGraphs Multiniveau(uint niveau_contraction, UnorientedGraph *g, UnorientedGraph *graph_origin,
  43. OrientedGraph *go, int nbr_parties, int nbr_tirage,
  44. std::string contraction,
  45. std::string type_methode,
  46. std::string choix_affinage,
  47. std::string type_cut,
  48. Edges &edge_partie,
  49. OutputEdgeList &outputedgeslist,
  50. InputEdgeList &inputedgelist,
  51. Connections &connections,
  52. bool rec, std::vector<double> &Cut,
  53. int distance = -1);
  54. void Optimisation_method_neighbour(UnorientedGraph *g, EntiersEntiers &Partition, int index_partition, int nbr_tirage, const std::string &name_cut, const std::string &name_strat);
  55. void Optimisation_method_neighbour_distance(UnorientedGraph *g, EntiersEntiers &Partition, int index_partition, int nbr_tirage, int distance, const std::string &name_cut,
  56. const std::string &name_strat);
  57. void Optimisation_method_neighbour_degree(UnorientedGraph *g, EntiersEntiers &Partition, int index_partition,const std::string &name_cut, const std::string &name_strat);
  58. void Optimisation_method_neighbour_minweight(UnorientedGraph *g, EntiersEntiers &Partition, int index_partition,
  59. const std::string &name_cut, const std::string &name_strat);
  60. void tirage_distance(UnorientedGraph *g, int tirage, std::list<int> &vertex_list, int distance);
  61. } } } // namespace paradevs tests boost_graph
  62. #endif