Skip to content

Commit 1a60872

Browse files
authored
Merge pull request #119 from stdgraph/edge_id
Remove edge_id(g,uv)
2 parents c1bf1af + bcb9032 commit 1a60872

File tree

2 files changed

+0
-185
lines changed

2 files changed

+0
-185
lines changed

include/graph/detail/graph_cpo.hpp

-44
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
// (included from graph.hpp)
44
#include "graph/graph_descriptors.hpp"
5-
#include "tag_invoke.hpp"
65

76
#ifndef GRAPH_CPO_HPP
87
# define GRAPH_CPO_HPP
@@ -2432,49 +2431,6 @@ inline namespace _Cpos {
24322431
}
24332432

24342433

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-
24782434
//
24792435
// has_edge(g,) -> bool default = for(const auto& u : vertices(g)) if (!empty(edges(g,u))) return true; return false;
24802436
// has_edge(g,u,pid) -> bool default = ?

include/graph/detail/tag_invoke.hpp

-141
This file was deleted.

0 commit comments

Comments
 (0)