gggp.hpp 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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_partitioning(UnorientedGraph *g,
  52. uint parts_number);
  53. OrientedGraphs Multiniveau(OrientedGraph *go,
  54. const std::vector<uint> &numeric_parameters,
  55. const std::vector<std::string> &parameters,
  56. Edges &edge_partie,
  57. OutputEdgeList &outputedgeslist,
  58. InputEdgeList &inputedgelist,
  59. Connections &connections,
  60. bool rec, int distance = -1);
  61. void Optimisation_method_neighbour(UnorientedGraph *g,
  62. EntiersEntiers &Partition,
  63. int index_partition, int nbr_tirage,
  64. const std::string &name_cut,
  65. const std::string &name_strat);
  66. void Optimisation_method_neighbour_distance(UnorientedGraph *g,
  67. EntiersEntiers &Partition,
  68. int index_partition, int nbr_tirage,
  69. int distance, const std::string &name_cut,
  70. const std::string &name_strat);
  71. void Optimisation_method_neighbour_degree(UnorientedGraph *g,
  72. EntiersEntiers &Partition,
  73. int index_partition,
  74. const std::string &name_cut,
  75. const std::string &name_strat);
  76. void Optimisation_method_neighbour_minweight(UnorientedGraph *g,
  77. EntiersEntiers &Partition,
  78. int index_partition,
  79. const std::string &name_cut,
  80. const std::string &name_strat);
  81. void tirage_distance(UnorientedGraph *g, int tirage,
  82. std::list<int> &vertex_list, int distance);
  83. } } } // namespace paradevs tests boost_graph
  84. #endif