|
graph_analysis
|
NWeightedEdge is an Edge which can be associated with N-weights, i.e., a vector of weights. More...
#include <NWeightedEdge.hpp>


Public Types | |
| typedef shared_ptr< NWeightedEdge > | Ptr |
Public Types inherited from graph_analysis::NWeighted< T, 2, Edge > | |
| typedef shared_ptr< NWeighted > | Ptr |
| typedef T | value_t |
Public Types inherited from graph_analysis::Edge | |
| typedef shared_ptr< Edge > | Ptr |
| typedef shared_ptr< const Edge > | ConstPtr |
| typedef std::vector< Ptr > | PtrList |
| typedef std::set< Ptr > | PtrSet |
Public Types inherited from graph_analysis::GraphElement | |
| typedef shared_ptr< GraphElement > | Ptr |
| typedef weak_ptr< GraphElement > | WeakPtr |
| typedef std::vector< Ptr > | PtrList |
Public Member Functions | |
| NWeightedEdge (const T &weight) | |
| NWeightedEdge (const std::vector< T > &weights=std::vector< T >(Dim)) | |
| NWeightedEdge (const Vertex::Ptr &source, const Vertex::Ptr &target, const T &weight) | |
| NWeightedEdge (const Vertex::Ptr &source, const Vertex::Ptr &target, const std::vector< T > &weights) | |
| void | registerAttributes (EdgeTypeManager *eManager) const override |
| virtual | ~NWeightedEdge () |
| virtual std::string | getClassName () const |
Public Member Functions inherited from graph_analysis::NWeighted< T, 2, Edge > | |
| NWeighted (const T &weight) | |
| NWeighted (const std::vector< T > &weights=std::vector< T >(Dim)) | |
| NWeighted (const NWeighted &other) | |
| virtual | ~NWeighted () |
| virtual std::string | getClassName () const |
| virtual std::string | toString () const |
| void | setWeights (const std::vector< T > &weights) |
| std::vector< T > | getWeights () const |
| void | setWeight (T value, size_t index=0) |
| const T & | getWeight (size_t index=0) const |
| std::string | serializeWeights () |
| void | deserializeWeights (const std::string &s) |
| std::string | stringifyWeights () const |
Public Member Functions inherited from graph_analysis::Edge | |
| Edge (const std::string &label=std::string()) | |
| Edge (const Vertex::Ptr &source, const Vertex::Ptr &target, const std::string &label=std::string()) | |
| virtual | ~Edge () |
| Edge::Ptr | clone () const |
| virtual std::string | toString () const |
| virtual std::string | toString (uint32_t indent) const |
| Vertex::Ptr | getSourceVertex () const |
| Vertex::Ptr | getTargetVertex () const |
| void | setSourceVertex (const Vertex::Ptr &source) |
| void | setTargetVertex (const Vertex::Ptr &target) |
| Edge::Ptr | getSharedPointerFromGraph (const shared_ptr< BaseGraph > &pGraph) const |
| Edge::Ptr | getPtr () |
| Edge::ConstPtr | getPtr () const |
Public Member Functions inherited from graph_analysis::GraphElement | |
| GraphElement (const std::string &label=std::string()) | |
| Default constructor. More... | |
| virtual | ~GraphElement () |
| virtual void | setLabel (const std::string &label) |
| virtual const std::string & | getLabel () const |
| bool | associated (GraphId graph) const |
| void | associate (GraphId graph, GraphElementId elementId) |
| void | disassociate (GraphId graph) |
| GraphElementId | getId (GraphId graph) const |
| GraphElementUuid | getUid () const |
| GraphElementUuid | getUuid () const |
| GraphIdList | getGraphAssociations () const |
| std::string | toPrefixedString (GraphId graph) const |
Protected Member Functions | |
| virtual Edge * | getClone () const |
Protected Member Functions inherited from graph_analysis::NWeighted< T, 2, Edge > | |
| void | validateDimensions (const std::vector< T > &weights) const |
| virtual Edge * | getClone () const |
Protected Member Functions inherited from graph_analysis::GraphElement | |
| GraphElement::Ptr | getSharedFromThis () |
| void | disassociateFromAll () |
| void | setUuid (const GraphElementUuid &uuid) |
| void | setUuid (const std::string &uuid) |
Static Protected Member Functions | |
| static const EdgeRegistration< NWeightedEdge< T, Dim > > | __attribute__ ((used)) msRegistration |
Additional Inherited Members | |
Static Public Member Functions inherited from graph_analysis::Edge | |
| static std::vector< Vertex::Ptr > | getInvolvedVertices (const Edge::Ptr &e0, const Edge::Ptr &e1) |
| static bool | areMeeting (const Edge::Ptr &e0, const Edge::Ptr &e1) |
Static Public Member Functions inherited from graph_analysis::GraphElement | |
| static GraphElement::Ptr | fromUuid (const GraphElementUuid &uuid) |
Protected Attributes inherited from graph_analysis::NWeighted< T, 2, Edge > | |
| std::vector< T > | mWeights |
Protected Attributes inherited from graph_analysis::GraphElement | |
| GraphElementMap | mGraphElementMap |
| GraphElementUuid | mUuid |
| std::string | mLabel |
Static Protected Attributes inherited from graph_analysis::GraphElement | |
| static boost::uuids::random_generator | msUuidGenerator |
| static std::map< GraphElementUuid, function< GraphElement::Ptr()> > | msGraphElements |
NWeightedEdge is an Edge which can be associated with N-weights, i.e., a vector of weights.
| typedef shared_ptr< NWeightedEdge > graph_analysis::NWeightedEdge< T, Dim >::Ptr |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
|
staticprotected |
|
inlinevirtual |
Reimplemented from graph_analysis::Edge.
|
inlineprotectedvirtual |
Get instance of an edge
Reimplemented from graph_analysis::Edge.
|
inlineoverridevirtual |
Hook to register attributes of this vertex, in order to properly perform serialization
If serialization is not needed, then registration is optional Otherwise each Edge implementation has to implement this method, and add a static member
#include "EdgeRegistration.hpp"
class DerivedEdge : Edge
{
static const EdgeRegistration<DerivedEdge> __attribute__((used)) msRegistration;
}
in the source file, e.g. DerivedEdge.cpp add
const EdgeRegistration<DerivedEdge> DerivedEdge::msRegistration;
Reimplemented from graph_analysis::Edge.
1.8.17