Go to the documentation of this file. 1 #ifndef GRAPH_ANALYSIS_NWEIGHTED_VERTEX_HPP
2 #define GRAPH_ANALYSIS_NWEIGHTED_VERTEX_HPP
15 template<
typename T,
size_t Dim = 2>
19 typedef shared_ptr< NWeightedVertex >
Ptr;
38 "graph_analysis::NWeightedVertex_" + std::string(
typeid(T).name()) +
"_" + std::to_string(Dim); }
46 template<
typename T,
size_t Dim>
50 #endif // GRAPH_ANALYSIS_NWEIGHTED_VERTEX_HPP
std::string(graph_analysis::GraphElement::* print_func_t)()
Definition: Serialization.hpp:34
shared_ptr< NWeightedVertex > Ptr
Definition: NWeightedVertex.hpp:19
std::string serializeWeights()
Definition: NWeighted.hpp:126
void(graph_analysis::GraphElement::* deserialize_func_t)(const std::string &)
Definition: Serialization.hpp:33
A vertex inherited to allow storing data of any type.
Definition: Vertex.hpp:19
void deserializeWeights(const std::string &s)
Definition: NWeighted.hpp:134
virtual Vertex * getClone() const
Definition: NWeightedVertex.hpp:41
Main namespace of the graph analysis library.
Definition: BFS.cpp:3
void registerAttribute(const std::string &typeName, const std::string &attributeName, io::AttributeSerializationCallbacks::serialize_func_t sF, io::AttributeSerializationCallbacks::deserialize_func_t dF, io::AttributeSerializationCallbacks::print_func_t pF)
register a new attribute for serialization and deserialization
Definition: AttributeManager.cpp:5
const VertexRegistration< MultiCommodityVertex > msRegistration
Definition: MultiCommodityVertex.cpp:13
virtual std::string getClassName() const
Definition: NWeightedVertex.hpp:37
NWeightedVertex(const T &weight=T())
Definition: NWeightedVertex.hpp:21
std::string stringifyWeights() const
Definition: NWeighted.hpp:142
NWeighted is a template to associate N-weights with either a vertex or an edge, i....
Definition: NWeighted.hpp:26
NWeightedVertex is an Vertex which can be associated with N-weights, i.e., a vector of weights.
Definition: NWeightedVertex.hpp:16
static const VertexRegistration< NWeightedVertex< T, Dim > > __attribute__((used)) msRegistration
Factory for Vertex subclasses.
Definition: VertexTypeManager.hpp:29
Definition: VertexRegistration.hpp:14
std::string(graph_analysis::GraphElement::* serialize_func_t)()
Definition: Serialization.hpp:32
virtual ~NWeightedVertex()
Definition: NWeightedVertex.hpp:25
void registerAttributes(VertexTypeManager *vManager) const override
Definition: NWeightedVertex.hpp:27