1 #ifndef GRAPH_ANALYSIS_NWEIGHTED_EDGE_HPP 2 #define GRAPH_ANALYSIS_NWEIGHTED_EDGE_HPP 16 template<
typename T,
size_t Dim = 2>
20 typedef shared_ptr< NWeightedEdge >
Ptr;
49 "graph_analysis::NWeightedEdge_" + std::string(
typeid(T).name()) +
"_" + std::to_string(Dim); }
58 #endif // GRAPH_ANALYSIS_NWEIGHTED_EDGE_HPP NWeightedEdge(const Vertex::Ptr &source, const Vertex::Ptr &target, const std::vector< T > &weights)
Definition: NWeightedEdge.hpp:37
shared_ptr< NWeightedEdge > Ptr
Definition: NWeightedEdge.hpp:20
virtual ~NWeightedEdge()
Definition: NWeightedEdge.hpp:44
NWeightedEdge is an Edge which can be associated with N-weights, i.e., a vector of weights...
Definition: NWeightedEdge.hpp:17
NWeightedEdge(const T &weight)
Definition: NWeightedEdge.hpp:22
virtual Edge * getClone() const
Definition: NWeightedEdge.hpp:52
const VertexRegistration< MultiCommodityVertex > msRegistration
Definition: MultiCommodityVertex.cpp:13
NWeightedEdge(const Vertex::Ptr &source, const Vertex::Ptr &target, const T &weight)
Definition: NWeightedEdge.hpp:30
Main namespace of the graph analysis library.
Definition: BFS.cpp:3
shared_ptr< Vertex > Ptr
Definition: Vertex.hpp:22
virtual std::string getClassName() const
Definition: NWeightedEdge.hpp:48
NWeighted is a template to associate N-weights with either a vertex or an edge, i.e., adds a vector of weights.
Definition: NWeighted.hpp:26
An Edge represents the link between two vertices.
Definition: Edge.hpp:18
static const EdgeRegistration< NWeightedEdge< T, Dim > > __attribute__((used)) msRegistration
Definition: EdgeRegistration.hpp:14
NWeightedEdge(const std::vector< T > &weights=std::vector< T >(Dim))
Definition: NWeightedEdge.hpp:26
void setTargetVertex(const Vertex::Ptr &target)
Definition: Edge.hpp:72
void setSourceVertex(const Vertex::Ptr &source)
Definition: Edge.hpp:67