22 rings.
swap(tempEmpty);
40 for (
int i = 0; i < ring1.
size(); i++) {
46 if (it != ring2.
end()) {
73 if (common1.
size() == 0) {
81 if (common2.
size() == 0) {
99 int ringSize =
ring.size();
104 for (
int i = 0; i < ringSize; i++) {
110 for (
int k = 1; k < 3; k++) {
113 if (kIndex >= ringSize) {
121 if (triplet == ringTriplet) {
129 if (triplet == ringTriplet) {
156 for (
int iring = 0; iring < rings.size(); iring++) {
159 if (rings[iring].size() == ringSize) {
164 return ringSingleSize;
188 if (commonElements.
size() == 0) {
213 (ring1 == ring2) ? result =
true : result =
false;
T back_inserter(T... args)
bool commonElementsInThreeRings(std::vector< int > ring1, std::vector< int > ring2, std::vector< int > ring3)
Common elements in 3 rings.
bool findTripletInRing(std::vector< int > ring, std::vector< int > triplet)
Searches a particular ring for a triplet.
int clearRingList(std::vector< std::vector< int >> &rings)
Erases memory for a vector of vectors for a list of rings.
bool hasCommonElements(std::vector< int > ring1, std::vector< int > ring2)
std::vector< std::vector< int > > getSingleRingSize(std::vector< std::vector< int >> rings, int ringSize)
Returns a vector of vectors of rings of a single size.
std::vector< int > findsCommonElements(std::vector< int > ring1, std::vector< int > ring2)
Returns the common elements of two rings.
bool compareRings(std::vector< int > ring1, std::vector< int > ring2)
Topological network criteria functions.
File containing common functions used by bulk and confined topological network critera.
T set_intersection(T... args)