|
2 | 2 |
|
3 | 3 | // (included from graph.hpp)
|
4 | 4 | #include "graph/graph_descriptors.hpp"
|
5 |
| -#include "tag_invoke.hpp" |
6 | 5 |
|
7 | 6 | #ifndef GRAPH_CPO_HPP
|
8 | 7 | # define GRAPH_CPO_HPP
|
@@ -2432,49 +2431,6 @@ inline namespace _Cpos {
|
2432 | 2431 | }
|
2433 | 2432 |
|
2434 | 2433 |
|
2435 |
| -// vertices(g,pid) -> range of vertices; graph container must override if it supports bi-partite or |
2436 |
| -// multi-partite graph. |
2437 |
| -// |
2438 |
| -namespace tag_invoke { |
2439 |
| - //TAG_INVOKE_DEF(vertices); // vertices(g) -> [graph vertices] (already defined for vertices(g)) |
2440 |
| - |
2441 |
| - template <class G> |
2442 |
| - concept _has_vertices_pid_adl = requires(G&& g, partition_id_t<G> pid) { |
2443 |
| - { vertices(g, pid) }; |
2444 |
| - }; |
2445 |
| -} // namespace tag_invoke |
2446 |
| - |
2447 |
| -/** |
2448 |
| - * @brief Get's the range of vertices for a partition in a graph. |
2449 |
| - * |
2450 |
| - * Complexity: O(1) |
2451 |
| - * |
2452 |
| - * Default implementation: empty range of vertices; the type returned may not be the same |
2453 |
| - * as vertex_range_t<G>. The graph container must override if it supports bi-partite |
2454 |
| - * or multipartite graphs. |
2455 |
| - * |
2456 |
| - * This is a customization point function that may be overriden if graph G supports bi-partite |
2457 |
| - * or multi-partite graphs. If it doesn't then an empty range is returned. |
2458 |
| - * |
2459 |
| - * @tparam G The graph type. |
2460 |
| - * @param g A graph instance. |
2461 |
| - * @return The number of partitions in a graph. 0 if G doesn't support partitioning. |
2462 |
| -*/ |
2463 |
| -# if 0 |
2464 |
| -template <class G> |
2465 |
| -requires tag_invoke::_has_vertices_pid_adl<G> |
2466 |
| -auto vertices(G&& g, partition_id_t<G> pid) { |
2467 |
| - if constexpr (tag_invoke::_has_vertices_pid_adl<G>) |
2468 |
| - return tag_invoke::vertices(g, pid); |
2469 |
| - else |
2470 |
| - return vertices(g); |
2471 |
| -} |
2472 |
| - |
2473 |
| -template <class G> |
2474 |
| -using partition_vertex_range_t = decltype(vertices(declval<G>(), declval<partition_id_t<G>>())); |
2475 |
| -# endif |
2476 |
| - |
2477 |
| - |
2478 | 2434 | //
|
2479 | 2435 | // has_edge(g,) -> bool default = for(const auto& u : vertices(g)) if (!empty(edges(g,u))) return true; return false;
|
2480 | 2436 | // has_edge(g,u,pid) -> bool default = ?
|
|
0 commit comments