Vertex

struct Vertex

Vertex to hold lemon id in the graph and the corresponding user id (may be different)

struct bidirectional::AdjVertex

Data structure to hold adjacent vertex attributes. (this way it can be used both forward and backward directions)

Public Functions

inline AdjVertex()

Dummy constructor.

inline AdjVertex(const Vertex &v, const double &w, const std::vector<double> &r_c)

Default constructor.

inline ~AdjVertex()

Default destructor.

Public Members

Vertex vertex

Tail/head vertex.

double weight

Double with weight/cost for the arc.

std::vector<double> resource_consumption

Vector of doubles with resource consumption.

bool init = false

Bool to check initialisation of the struct.