gggp.hpp 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  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-2015 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,
  32. EntiersEntiers &Partition,
  33. int rand , int &index_partition,
  34. int distance);
  35. void gggp_pond(UnorientedGraph *g, Entiers *sommetsSource,
  36. Entiers *sommetsDestination,
  37. EntiersEntiers &Partition, int rand,
  38. int &index_partition,
  39. const std::string &name, int distance);
  40. void Iter_2l(EntiersEntiers &part, int nbr_parties, UnorientedGraph *g,
  41. const std::string &nom_cut, int nbr_tirage,
  42. const std::string &nom_strat, bool rec,
  43. int distance = -1);
  44. void bissectionRec(UnorientedGraph *g, EntiersEntiers &Partition,
  45. int nbr_parties, const std::string &nom_cut,
  46. int nbr_tirage, const std::string &nom_strat,
  47. int distance = -1);
  48. void Pseudo_random_partitioning(UnorientedGraph *g,
  49. EntiersEntiers &Partition,
  50. uint nbr_parties);
  51. EntiersEntiers Random_equal_weight_partitioning(UnorientedGraph *g,
  52. uint parts_number);
  53. EntiersEntiers Random_partitioning(UnorientedGraph *g,
  54. uint parts_number);
  55. OrientedGraphs Multiniveau(OrientedGraph *go,
  56. const std::vector<uint> &numeric_parameters,
  57. const std::vector<std::string> &parameters,
  58. Edges &edge_partie,
  59. OutputEdgeList &outputedgeslist,
  60. InputEdgeList &inputedgelist,
  61. Connections &connections,
  62. bool rec, int distance = -1);
  63. void Optimisation_method_neighbour(UnorientedGraph *g,
  64. EntiersEntiers &Partition,
  65. int index_partition, int nbr_tirage,
  66. const std::string &name_cut,
  67. const std::string &name_strat);
  68. void Optimisation_method_neighbour_distance(UnorientedGraph *g,
  69. EntiersEntiers &Partition,
  70. int index_partition,
  71. int nbr_tirage,
  72. int distance,
  73. const std::string &name_cut,
  74. const std::string &name_strat);
  75. void Optimisation_method_neighbour_degree(UnorientedGraph *g,
  76. EntiersEntiers &Partition,
  77. int index_partition,
  78. const std::string &name_cut,
  79. const std::string &name_strat);
  80. void Optimisation_method_neighbour_minweight(UnorientedGraph *g,
  81. EntiersEntiers &Partition,
  82. int index_partition,
  83. const std::string &name_cut,
  84. const std::string &name_strat);
  85. void tirage_distance(UnorientedGraph *g, int tirage,
  86. std::list<int> &vertex_list, int distance);
  87. } } } // namespace paradevs tests boost_graph
  88. #endif