1 #ifndef GRAPH_ANALYSIS_VERTEX_TYPE_MANAGER_HPP 2 #define GRAPH_ANALYSIS_VERTEX_TYPE_MANAGER_HPP 7 #include <base-logging/Singleton.hpp> 31 typedef std::map<vertex::Type, Vertex::Ptr>
TypeMap;
38 std::set<std::string> mRegisteredTypes;
39 std::string mDefaultVertexType;
58 void setDefaultType(
const std::string& type);
66 void registerType(
const Vertex::Ptr& vertex,
bool throwOnAlreadyRegistered =
false);
80 bool throwOnMissing =
false);
86 std::set<std::string> getSupportedTypes()
const;
95 std::vector<Attribute> getKnownAttributes(
const std::set<std::string>& classnames = std::set<std::string>())
const;
101 std::vector< std::pair<Attribute::Id, std::string> >
102 getAttributeValues(
const Vertex::Ptr& vertex)
const;
const std::string & getDefaultType() const
Definition: VertexTypeManager.hpp:63
std::map< vertex::Type, Vertex::Ptr > TypeMap
Definition: VertexTypeManager.hpp:31
Manage object (vertex/edge) attributes and allow them to be serialized, e.g., using GEXF or GraphML...
Definition: AttributeManager.hpp:13
Main namespace of the graph analysis library.
Definition: BFS.cpp:3
shared_ptr< Vertex > Ptr
Definition: Vertex.hpp:22
Factory for Vertex subclasses.
Definition: VertexTypeManager.hpp:28
std::string Type
Definition: VertexTypeManager.hpp:16