Class for vertices in random directed graphs embedded in a hidden metric space. More...
#include <hms_directed_vertex.hpp>
Public Types | |
typedef std::list < gcl::simple_edge >::iterator | iterator |
Typedef for iterators used to browse the neighbourhood of the vertex. | |
Public Member Functions | |
hms_directed_vertex () | |
Constructor. | |
~hms_directed_vertex () | |
Destructor. | |
std::vector< double > | get_metric_space_position () |
Returns the _idx-th coordinate of position of the vertex. | |
std::vector< double > | get_hidden_variables () |
Returns the _idx-th hidden variable. | |
void | set_metric_space_position (std::vector< double > _values) |
Sets the position of the vertex in the metric space. | |
void | set_hidden_variables (std::vector< double > _values) |
Sets the hidden variables. | |
void | clear () |
Reinitializes the vertex (specific variables). | |
unsigned int | get_in_degree () |
Returns the degree of the vertex. | |
unsigned int | get_out_degree () |
Returns the degree of the vertex. | |
unsigned int | get_undirected_projection_degree () |
Returns the degree that the vertex has in the undirected version of the directed graph. | |
unsigned int | get_nb_reciprocal_edges () |
Returns the number of reciprocal edges the vertex has. | |
unsigned int | get_nb_undirected_projection_triangles () |
Returns the number of triangles the vertex is a part of (regardless of the direction of the edges). | |
double | get_local_undirected_projection_clustering_coefficient () |
Returns the local clustering coefficient (regardless of the direction of the edges). | |
void | set_nb_undirected_projection_triangles (unsigned int _value) |
Sets the number of triangles the vertex is a part of (regardless of the direction of the edges). | |
void | set_nb_reciprocal_edges (unsigned int _value) |
Sets the number of reciprocal edges the vertiex has. | |
void | in_neighbour_insert (gcl::simple_edge_edge) |
Adds a vertex to the in neighbourhood of the vertex. | |
void | out_neighbour_insert (gcl::simple_edge_edge) |
Adds a vertex to the out neighbourhood of the vertex. | |
gcl::base_vertex < gcl::simple_edge >::iterator | in_neighbour_begin () |
Returns an operator pointing at the beginning the in neighbours container. | |
gcl::base_vertex < gcl::simple_edge >::iterator | in_neighbour_end () |
Returns an operator pointing at the end the in neighbours container. | |
gcl::base_vertex < gcl::simple_edge >::iterator | out_neighbour_begin () |
Returns an operator pointing at the beginning the out neighbours container. | |
gcl::base_vertex < gcl::simple_edge >::iterator | out_neighbour_end () |
Returns an operator pointing at the end the out neighbours container. | |
std::string | get_name () |
Returns the id of the vertex. | |
void | set_name (std::string _name) |
Sets the name of the vertex. | |
unsigned int | get_base_vertex_degrees (unsigned int _type) |
Returns the degree of type _type. | |
Protected Member Functions | |
void | base_directed_vertex_clear () |
Reinitializes the vertex. | |
void | set_nb_of_types_of_degrees (unsigned int _value) |
Sets the number of types of degrees. | |
void | base_vertex_neighbour_insert (unsigned int _type, gcl::simple_edge_info) |
Inserts the information of a new neighbour in the neighbours structure. | |
iterator | base_vertex_neighbour_begin (unsigned int _type) |
Returns an iterator pointing at the begining of neighbours of type _type. | |
iterator | base_vertex_neighbour_end (unsigned int _type) |
Returns an iterator pointing at the end of neighbours of type _type. | |
void | base_vertex_clear () |
Reinitializes the variables in the class base_vertex. | |
Class for vertices in random directed graphs embedded in a hidden metric space.
This class provides the common members attributes and functions for vertex objects in random directed graphs embedded in a hidden metric space.