graph_build.hpp 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /**
  2. * @file tests/boost_graph/partitioning/graph_build.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_GRAPH_BUILD_H
  26. #define TESTS_BOOST_GRAPH_PARTITIONING_GRAPH_BUILD_H
  27. #include <tests/boost_graph/partitioning/defs.hpp>
  28. #include <tests/boost_graph/partitioning/utils.hpp>
  29. #include <fstream>
  30. namespace paradevs { namespace tests { namespace boost_graph {
  31. void build_graph(OrientedGraph& og, unsigned int edge_number);
  32. void build_generator_graph(OrientedGraph *go, int nbr_vertex,
  33. int nbr_source, int nbr_v_min, int nbr_v_max,
  34. const std::vector<int> &niveau);
  35. void build_generator_graph_linked(OrientedGraph *go, int nbr_vertex,
  36. int nbr_couche, int nbr_v_min, int nbr_v_max);
  37. void build_graph_cyclique(OrientedGraph& og);
  38. void build_graph_grid(OrientedGraph *go, int side,
  39. const std::vector<std::pair<int,int>> &vertex_selection,
  40. const Entiers &weight_vertex, const char *edge_weight,
  41. bool rec);
  42. //void build_corsen_graph(OrientedGraph& graph);
  43. } } } // namespace paradevs tests boost_graph;
  44. #endif