Scine::Swoose
2.1.0
This is the SCINE module Swoose.
|
Method for reading and writing the connectivity of atoms (list of neighbors for each atom). More...
#include <ConnectivityFileHandler.h>
Static Public Member Functions | |
static std::vector< std::list < int > > | readListsOfNeighbors (const std::string &filename) |
Reads the lists of neighbors from a file. More... | |
static void | writeListsOfNeighbors (const std::string &filename, const std::vector< std::list< int >> &listsOfNeighbors) |
Writes all the neighbors of every atom to a file, i.e. the connectivity of the system. More... | |
Method for reading and writing the connectivity of atoms (list of neighbors for each atom).
|
static |
Reads the lists of neighbors from a file.
filename | Name of the file from which the connectivity is read. |
|
static |
Writes all the neighbors of every atom to a file, i.e. the connectivity of the system.
filename | Name of the file to which the connectivity is written. |
The | connectivity of the system. It is a vector of a list of neighbor atom indices for each atom. |