5#ifndef NETSCI_NETWORK_H
6#define NETSCI_NETWORK_H
40 const std::string &trajectoryFile,
41 const std::string &topologyFile,
150 void save(
const std::string& jsonFile);
161 void load(
const std::string& jsonFile);
175 friend nlohmann::adl_serializer<Network*>;
176 std::vector<Node*> nodeAtomIndexVector_;
179 std::vector<Node*> nodes_;
Manages CUDA-supported arrays, offering initialization, memory management, and data manipulation....
Definition cuarray.h:24
int numNodes() const
Get the number of nodes in the Network.
Atoms * atoms() const
Get the Atoms object associated with the Network.
Network()
Default constructor for Network.
void nodeCoordinates(const std::string &nodeCoordinatesFile)
Set the node coordinates from a file.
Node * nodeFromAtomIndex(int atomIndex)
Get the node corresponding to the Atom with the given index.
std::vector< Node * > & nodes()
Get a reference to the vector of nodes in the Network.
void init(const std::string &trajectoryFile, const std::string &topologyFile, int firstFrame, int lastFrame, int stride=1)
Initialize the Network with trajectory and topology files.
void parseDcd(const std::string &nodeCoordinates, int firstFrame, int lastFrame, int stride)
Parse a DCD file to populate the Network.
void parsePdb(const std::string &fname)
Parse a PDB file to populate the Network.
~Network()
Destructor for Network.
CuArray< float > * nodeCoordinates()
Get the node coordinates as a CuArray.
int numFrames() const
Get the number of frames in the Network.
void save(const std::string &jsonFile)
Save the Network as a JSON file.
void load(const std::string &jsonFile)
Load a Network from a JSON file.
Represents a node in a graph.
Definition node.h:16