Graph from CSV Reader

Functions

void writelat(H5::Group &h5loc, const GraphFromCSV &l)

This function provides the necessary overload for MARQOV::Core such that we can dump useful info into the HDF5 file.

Parameters
  • h5loc: the group of the lattice

  • l: the lattice that we are dumping info about.

class GraphFromCSV
#include <graph_from_csv.h>

Read minimal graph from csv file.

Note

for format specifications see general documentation

Public Functions

GraphFromCSV(std::string filename)
std::vector<int> nbrs(const int a, const int i) const
std::vector<double> crds(const int i) const
std::size_t size() const

Public Members

int npoints
int ncoords
std::vector<std::vector<int>> neighbours
std::vector<std::vector<double>> grid