26 rings.
swap(tempEmpty);
56 for (
int iring = 0; iring < rings.size(); iring++) {
57 ringSize = rings[iring].size();
59 for (
int j = 0; j < ringSize; j++) {
60 iatom = rings[iring][j];
62 if ((*atomTypes)[iatom] == 1) {
63 (*atomTypes)[iatom] = ringSize;
67 prevRingSize = (*atomTypes)[iatom];
68 if (ringSize > prevRingSize) {
69 (*atomTypes)[iatom] = ringSize;
91 for (
int i = 0; i < ring1.
size(); i++) {
97 if (it != ring2.
end()) {
124 if (common1.
size() == 0) {
132 if (common2.
size() == 0) {
150 int ringSize =
ring.size();
155 for (
int i = 0; i < ringSize; i++) {
161 for (
int k = 1; k < 3; k++) {
164 if (kIndex >= ringSize) {
172 if (triplet == ringTriplet) {
180 if (triplet == ringTriplet) {
207 for (
int iring = 0; iring < rings.size(); iring++) {
210 if (rings[iring].size() == ringSize) {
215 return ringSingleSize;
239 if (commonElements.
size() == 0) {
264 (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)
int assignPolygonType(std::vector< std::vector< int >> rings, std::vector< int > *atomTypes, std::vector< int > nRings)
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)