5#ifndef SEAMS_CAGE_ENUM_H_
6#define SEAMS_CAGE_ENUM_H_
49 const std::vector<int> &faces);
56 const std::vector<int> &faces);
69 const std::vector<int> &pattern);
78 const Signature &signature,
const std::vector<int> &species,
79 const std::vector<std::vector<int>> &patterns);
85 const std::vector<std::vector<int>> &nList,
93 const std::vector<std::vector<int>> &nList,
94 const Signature &signature,
const std::vector<int> &atomRank);
125std::vector<std::vector<FoundCage>>
127 const std::vector<std::vector<int>> &nList,
128 const std::vector<Signature> &signatures,
129 const std::vector<int> &atomRank,
130 const std::vector<std::array<double, 3>> *xyz =
nullptr,
131 const std::vector<double> *box =
nullptr,
133 const std::vector<double> *boxLow =
nullptr);
140std::vector<FoundCage>
142 const Signature &signature,
int minFaces);
160std::vector<std::array<double, 3>>
162 const std::vector<int> &vertices);
170 const std::vector<std::array<double, 3>> &cageXyz);
185std::vector<FormerRow>
187 const std::vector<std::vector<int>> &rings,
188 const std::vector<int> &species,
int formerSpecies);
193 const std::vector<FormerRow> &late);
File for cage types for topological network criteria.
Functions for topological network criteria cage types.
std::vector< FoundCage > findIncompleteBySignature(const std::vector< std::vector< int > > &rings, const Signature &signature, int minFaces)
Connected face sets that stay inside the signature budget, have at least minFaces faces,...
std::string edgeWindowSpec(const EdgeWindow &window)
none when the window is off, otherwise lo,hi.
bool sameNetwork(const std::vector< FormerRow > &early, const std::vector< FormerRow > &late)
True when the two tables have the same per-atom species, coordination, homopolar count,...
bool isClosedPolyhedron(const std::vector< std::vector< int > > &rings, const std::vector< int > &faces)
True when every edge of the listed faces is used by exactly two of those faces.
CageShape shapeOfVertices(const std::vector< std::array< double, 3 > > &cageXyz)
Point group of this vertex set.
EdgeWindow parseEdgeWindow(std::string_view spec)
none, off, or false disables the window.
std::vector< std::array< double, 3 > > coordsOfVertices(const std::vector< std::array< double, 3 > > &all, const std::vector< int > &vertices)
Coordinates of vertices only.
std::vector< FoundCage > findBySignature(const std::vector< std::vector< int > > &rings, const Signature &signature)
Face-sharing rings whose size census equals signature and whose edges close.
bool speciesCycleMatches(const std::vector< int > &cycle, const std::vector< int > &pattern)
True when cycle is pattern rotated or reversed.
bool isSpherePolyhedron(const std::vector< std::vector< int > > &rings, const std::vector< int > &faces)
True when the listed faces are closed (isClosedPolyhedron), at least three faces around each of their...
std::size_t exerciseClosedSeedFilter(const std::vector< std::vector< int > > &rings, const Signature &signature)
Runs Search with the closed seed filter left on.
CageShape overlayVertices(const std::vector< std::array< double, 3 > > &ref, const std::vector< std::array< double, 3 > > &cageXyz)
Overlay cageXyz on ref.
std::vector< FormerRow > formerRows(const std::vector< std::vector< int > > &nList, const std::vector< std::vector< int > > &rings, const std::vector< int > &species, int formerSpecies)
formerSpecies < 0 keeps every atom.
std::vector< std::vector< FoundCage > > findBySignatures(const std::vector< std::vector< int > > &rings, const std::vector< std::vector< int > > &nList, const std::vector< Signature > &signatures, const std::vector< int > &atomRank, const std::vector< std::array< double, 3 > > *xyz=nullptr, const std::vector< double > *box=nullptr, const EdgeWindow &window={}, const std::vector< double > *boxLow=nullptr)
findBySignature for each of signatures, one list per entry.
IRA/SOFI result for one cage.
Inclusive length window on each face edge, in the coordinate units of the frame.
One cage matching a signature, closed or incomplete.
std::vector< int > faces
ring indices into the input vector
std::string certificate
nauty hex, empty when nauty is off
int danglingEdges
edges used once (cups / incomplete)
bool closed
faces tile a sphere
std::vector< int > vertices
sorted unique atom indices
Ring-size census of a polyhedral cage: size -> number of faces.