# C++ Reference: class MakePairActiveOperator

This documentation is automatically generated.

Operator which inserts pairs of inactive nodes into a path. Possible neighbors for the path 1 -> 2 -> 3 with pair (A, B) inactive (where 1 and 3 are first and last nodes of the path) are: 1 -> [A] -> [B] -> 2 -> 3 1 -> [B] -> 2 -> [A] -> 3 1 -> [A] -> 2 -> [B] -> 3 1 -> 2 -> [A] -> [B] -> 3 Note that this operator does not expicitely insert the nodes of a pair one after the other which forbids the following solutions: 1 -> [B] -> [A] -> 2 -> 3 1 -> 2 -> [B] -> [A] -> 3 which can only be obtained by inserting A after B.
Method
`DebugString`

Return type: `std::string `

`MakeNeighbor`

Return type: `bool `

`MakePairActiveOperator`

Arguments: ```const std::vector<IntVar*>& vars, const std::vector<IntVar*>& secondary_vars, std::function<int(int64)> start_empty_path_class, const RoutingIndexPairs& pairs```

`~MakePairActiveOperator`
{"ft_lang_label":"__label__en","ft_lang_prob":0.8283643,"math_prob":0.7249036,"size":731,"snap":"2020-34-2020-40","text_gpt3_token_len":224,"char_repetition_ratio":0.20220083,"word_repetition_ratio":0.14492753,"special_character_ratio":0.3529412,"punctuation_ratio":0.07874016,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.98289907,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-09-24T19:36:09Z\",\"WARC-Record-ID\":\"<urn:uuid:deb7e746-9f88-46e9-bd0e-e2f8a00b3e20>\",\"Content-Length\":\"59781\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:ca4f0958-8a7f-4548-bdd1-a30bee530372>\",\"WARC-Concurrent-To\":\"<urn:uuid:da60762c-4e1f-4adb-8bcb-13efe10f7b6b>\",\"WARC-IP-Address\":\"172.217.15.78\",\"WARC-Target-URI\":\"https://developers.google.com/optimization/reference/constraint_solver/routing_neighborhoods/MakePairActiveOperator\",\"WARC-Payload-Digest\":\"sha1:GBW4UB7DVXLJHM5TGZH56E442DB7LOIM\",\"WARC-Block-Digest\":\"sha1:7H3TRA6JXNVYDTU7UBFFR2D4EL7Z3EOG\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-40/CC-MAIN-2020-40_segments_1600400219691.59_warc_CC-MAIN-20200924163714-20200924193714-00391.warc.gz\"}"}