5.14. util.hpp¶
Full path: graph_canon/util.hpp
-
class
always_true¶ A function object always returning
true.
-
class
always_false¶ A function object always returning
false.
A class for adapting a pair of iterators into a range, e.g., useful when using Boost.Graph.
See as_range.
- returns
range<Iter>(x)
-
template<typename
Prop>
classproperty_less¶ A less-than comparator on a given property map, satisfying the
boost::ReadablePropertyMapConcept.
-
template<typename
Prop>
property_less<Prop>make_property_less(Prop &&prop)¶ - Returns
property_less<Prop>(std::forward<Prop>(prop))
-
template<typename
Graph, typenameSizeType>
voidpermute_graph(const Graph &g_in, Graph &g_out, const std::vector<SizeType> &permutation)¶ Add all vertices and edges from
g_intog_out, but where the order of vertex addition is given by thepermutation. It must be a permutation of the vertex indices ofg_inand is interpreted as a map from the indices ing_into the indices they will get ing_out(offset bynum_vertices(g_out)before the call).