10 #ifndef BASE_WEIGHTED_UNDIRECTED_VERTEX_HPP_INCLUDED
11 #define BASE_WEIGHTED_UNDIRECTED_VERTEX_HPP_INCLUDED
30 template <
class EdgeAttributesType>
54 template <
class EdgeAttributesType>
62 template <
class EdgeAttributesType>
65 strength += _edge.weight;
66 this->base_vertex_neighbour_insert(this->id_degree, _edge);
71 template <
class EdgeAttributesType>
75 this->set_nb_of_types_of_degrees(1);
77 this->base_undirected_vertex_clear();
84 #endif // BASE_WEIGHTED_UNDIRECTED_VERTEX_HPP_INCLUDED
base_weighted_undirected_vertex()
Constructor.
Definition: base_weighted_undirected_vertex.hpp:40
double get_strength()
Returns the local clustering coefficient.
Definition: base_weighted_undirected_vertex.hpp:55
virtual ~base_weighted_undirected_vertex()
Destructor.
Definition: base_weighted_undirected_vertex.hpp:41
void base_weighted_undirected_vertex_clear()
Reinitializes the vertex.
Definition: base_weighted_undirected_vertex.hpp:72
Virtual base class for vertices in undirected graphs.
Virtual template base class for vertices in undirected graphs.
Definition: base_undirected_vertex.hpp:33
Virtual template base class for vertices in undirected graphs.
Definition: base_weighted_undirected_vertex.hpp:31
void neighbour_insert(EdgeAttributesType _edge)
Adds a vertex to the neighbourhood of the vertex.
Definition: base_weighted_undirected_vertex.hpp:63