1 #ifndef GRAPH_ANALYSIS_VERTEX_HPP 2 #define GRAPH_ANALYSIS_VERTEX_HPP 12 class VertexTypeManager;
22 typedef shared_ptr< Vertex >
Ptr;
29 Vertex(
const std::string& label = std::string());
40 virtual std::string
getClassName()
const {
return "graph_analysis::Vertex"; }
45 virtual std::string
toString()
const;
51 virtual std::string
toString(uint32_t indentation)
const;
111 #endif // GRAPH_ANALYSIS_VERTEX_HPP virtual std::string toString() const
Definition: Vertex.cpp:33
GraphElement is the base class for all element in a graph, i.e. for edges and vertices.
Definition: GraphElement.hpp:34
Vertex::Ptr getPtr()
Definition: Vertex.cpp:23
virtual Vertex * getClone() const
Definition: Vertex.hpp:106
shared_ptr< const Vertex > ConstPtr
Definition: Vertex.hpp:23
std::set< Ptr > PtrSet
Definition: Vertex.hpp:25
virtual ~Vertex()
Definition: Vertex.hpp:27
virtual std::string getClassName() const
Definition: Vertex.hpp:40
std::vector< Ptr > PtrList
Definition: Vertex.hpp:24
Main namespace of the graph analysis library.
Definition: BFS.cpp:3
shared_ptr< Vertex > Ptr
Definition: Vertex.hpp:22
virtual void registerAttributes(VertexTypeManager *) const
Definition: Vertex.hpp:96
Factory for Vertex subclasses.
Definition: VertexTypeManager.hpp:28
Vertex(const std::string &label=std::string())
Definition: Vertex.cpp:7
Vertex::Ptr getSharedPointerFromGraph(const shared_ptr< BaseGraph > &pGraph) const
Definition: Vertex.cpp:18
A vertex inherited to allow storing data of any type.
Definition: Vertex.hpp:19
Vertex::Ptr clone() const
Definition: Vertex.cpp:11