Skip to content

Commit 963eb78

Browse files
committed
no more mixed type pairs. Too many vertex types already...
1 parent d04d4a9 commit 963eb78

2 files changed

Lines changed: 10 additions & 13 deletions

File tree

src/operations.cpp

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,10 @@ void declare_operations(nb::module_& m) {
5151

5252
types::run_each<
5353
metal::transform<
54-
metal::partial<
55-
metal::lambda<metal::apply>,
56-
metal::lambda<declare_cartesian_product>>,
57-
metal::cartesian<
58-
types::simple_vert_types,
59-
types::simple_vert_types>>>{}(m);
54+
metal::bind<
55+
metal::lambda<declare_cartesian_product>,
56+
metal::_1, metal::_1>,
57+
types::simple_vert_types>>{}(m);
6058

6159
declare_typed_add_operation_algorithms(m);
6260
declare_typed_remove_operation_algorithms(m);

src/type_utils.hpp

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
#include <utility>
55
#include <random>
6-
#include <concepts>
76

87
#include <metal.hpp>
98

@@ -55,15 +54,15 @@ namespace types {
5554

5655
using pair_vert_types =
5756
metal::transform<
58-
metal::partial<
59-
metal::lambda<metal::apply>,
60-
metal::lambda<std::pair>>,
61-
metal::cartesian<simple_vert_types, simple_vert_types>>;
57+
metal::bind<
58+
metal::lambda<std::pair>,
59+
metal::_1, metal::_1>,
60+
simple_vert_types>;
6261

63-
using compount_vert_type = metal::join<pair_vert_types>;
62+
using compound_vert_type = metal::join<pair_vert_types>;
6463

6564
using first_order_vert_types =
66-
metal::join<simple_vert_types, compount_vert_type>;
65+
metal::join<simple_vert_types, compound_vert_type>;
6766

6867
// first-order static edges
6968
using first_order_undirected_edges =

0 commit comments

Comments
 (0)