10 #ifndef HMS_DIRECTED_VERTEX_HPP_INCLUDED
11 #define HMS_DIRECTED_VERTEX_HPP_INCLUDED
35 const unsigned int nb_hidden_variables;
40 std::vector<double> metric_space_position;
42 std::vector<double> hidden_variables;
70 return metric_space_position;
77 return hidden_variables;
84 metric_space_position = _values;
91 hidden_variables = _values;
99 base_directed_vertex_clear();
101 metric_space_position.clear();
103 hidden_variables.clear();
104 hidden_variables.resize(nb_hidden_variables,0);
109 #endif // HMS_DIRECTED_VERTEX_HPP_INCLUDED
hms_directed_vertex()
Constructor.
Definition: hms_directed_vertex.hpp:61
void set_metric_space_position(std::vector< double > _values)
Sets the position of the vertex in the metric space.
Definition: hms_directed_vertex.hpp:82
Classes of attributes for edges (ex.: simple edge, weighted edge).
std::vector< double > get_metric_space_position()
Returns the _idx-th coordinate of position of the vertex.
Definition: hms_directed_vertex.hpp:68
Virtual template base class for vertices in directed graphs.
Definition: base_directed_vertex.hpp:33
void clear()
Reinitializes the vertex (specific variables).
Definition: hms_directed_vertex.hpp:96
std::vector< double > get_hidden_variables()
Returns the _idx-th hidden variable.
Definition: hms_directed_vertex.hpp:75
~hms_directed_vertex()
Destructor.
Definition: hms_directed_vertex.hpp:47
Virtual base class for vertices in directed graphs.
void set_hidden_variables(std::vector< double > _values)
Sets the hidden variables.
Definition: hms_directed_vertex.hpp:89
Class for vertices in random directed graphs embedded in a hidden metric space.
Definition: hms_directed_vertex.hpp:29