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


Public Types | |
| typedef shared_ptr< NWeightedVertex > | Ptr |
Public Types inherited from graph_analysis::NWeighted< T, 2, Vertex > | |
| typedef shared_ptr< NWeighted > | Ptr |
| typedef T | value_t |
Public Types inherited from graph_analysis::Vertex | |
| typedef shared_ptr< Vertex > | Ptr |
| typedef shared_ptr< const Vertex > | 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 | |
| NWeightedVertex (const T &weight=T()) | |
| virtual | ~NWeightedVertex () |
| void | registerAttributes (VertexTypeManager *vManager) const override |
| virtual std::string | getClassName () const |
Public Member Functions inherited from graph_analysis::NWeighted< T, 2, Vertex > | |
| 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::Vertex | |
| virtual | ~Vertex () |
| Vertex (const std::string &label=std::string()) | |
| Vertex::Ptr | clone () const |
| virtual std::string | toString () const |
| virtual std::string | toString (uint32_t indentation) const |
| Vertex::Ptr | getSharedPointerFromGraph (const shared_ptr< BaseGraph > &pGraph) const |
| Vertex::Ptr | getPtr () |
| Vertex::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 Vertex * | getClone () const |
Protected Member Functions inherited from graph_analysis::NWeighted< T, 2, Vertex > | |
| void | validateDimensions (const std::vector< T > &weights) const |
| virtual Vertex * | 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 VertexRegistration< NWeightedVertex< T, Dim > > | __attribute__ ((used)) msRegistration |
Additional Inherited Members | |
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, Vertex > | |
| 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 |
NWeightedVertex is an Vertex which can be associated with N-weights, i.e., a vector of weights.
| typedef shared_ptr< NWeightedVertex > graph_analysis::NWeightedVertex< T, Dim >::Ptr |
|
inline |
|
inlinevirtual |
|
staticprotected |
|
inlinevirtual |
|
inlineprotectedvirtual |
Create a copy of this vertex using a explicit clone of the subclass of Vertex
return new MyVertex(*this);
Reimplemented from graph_analysis::Vertex.
|
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 Vertex implementation has to implement this method, and add a static member
#include "VertexRegistration.hpp"
class DerivedVertex : Vertex
{
static const VertexRegistration<DerivedVertex> __attribute__((used)) msRegistration;
}
in the source file, e.g. DerivedVertex.cpp add
const VertexRegistration<DerivedVertex> DerivedVertex::msRegistration;
Reimplemented from graph_analysis::Vertex.
1.8.17